SyntaxFix
Write A Post
Hire A Developer
Questions
Use mysqli instead of mysql, and you need to pass the database name or schema:
before:
$conn = mysql_connect($dbhost, $dbuser, $dbpass);
after:
$conn = mysql_connect($dbhost, $dbuser, $dbpass, $myDBname);