Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $host = "myhostname";
- $user = 'myuser';
- $password = 'mypassword';
- $dbh = @mysql_connect($host, $user, $password);
- if (!$dbh) {
- echo "Error establishing a database connection";
- } else {
- echo "Database connection successful";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement