cant made mySQL connection
- by Andika Evangelion Thirteenth S
I've use following code
$con = mysql_connect("localhost","root","");if (!$con) {die('Could not connect: ' . mysql_error());}
It's works. but when
$db_host='localhost';$db_id='root';$db_pass='';
$con = mysql_connect($db_host,$db_id,$db_pass);if (!$con) {die('Could not connect: ' . mysql_error());}
it didn't works, trying to swap ("),('),and empty in mysql_connect() and in $var and vice versa. Any help would be appreciated. Thanks.