Advertisement
Guest User

Untitled

a guest
Apr 19th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. <?php
  2. $host = "myhostname";
  3. $user = 'myuser';
  4. $password = 'mypassword';
  5. $dbh = @mysql_connect($host, $user, $password);
  6. if (!$dbh) {
  7. echo "Error establishing a database connection";
  8. } else {
  9. echo "Database connection successful";
  10. }
  11. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement