$link=mysql_connect("localhost","root","root"); if(!$link){ die('Could not connect: ' . mysql_error()); }else{ echo "OK!"; }
mysql_connect(server,user,pwd,newlink,clientflag)