Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //connect.php
- $server = 'localhost';
- $username = 'usernamehere';
- $password = 'passwordhere';
- $database = 'databasenamehere';
- if(!mysql_connect($server, $username, $password))
- {
- exit('Error: could not establish database connection');
- }
- if(!mysql_select_db($database)
- {
- exit('Error: could not select the database'); // This is line 14
- }
- ?>
- Parse error: syntax error, unexpected ';' in D:xampphtdocsconnect.php on line 14
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement