Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*** mysql hostname ***/
- $hostname = 'localhost';
- /*** mysql username ***/
- $username = 'ceginforoot';
- /*** mysql password ***/
- $password = 'putpasswordhere';
- try {
- $dbh = new PDO("mysql:host=$hostname;dbname=ceginfo", $username, $password);
- /*** echo a message saying we have connected ***/
- echo 'Connected to database';
- }
- catch(PDOException $e)
- {
- echo $e->getMessage();
- }
Add Comment
Please, Sign In to add comment