here is my code
$db_handle = mysql_connect('127.0.0.1', 'root', '123456'); if(!$db_handle) die(mysql_error()) when i was debugging the code just got a page with "This page can't be display", and the a pop up message from netbean said " Socket Exception occured", can anyone help? thanks
edit new code:
$db_handle = new PDO('mysql:host=localhost;dbname=test','admin','123456'); if($db_handle) echo 'connected'; it works, but the mysqli didn't work either
mysql_*functionality. You should be using thePDOobject, or themysqlifunctions.phpinfo();