database.php 269 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 <?php $server = 'localhost'; $username = 'alvaro'; $password = 'nvidia'; $database = 'turnosdb'; try { $conn = new PDO("mysql:host=$server;dbname=$database;", $username, $password); } catch (PDOException $e) { die('Connection Failed: ' . $e->getMessage()); } ?>