$db=mysql_connect($servername,$dbusername,$dbpassword); mysql_select_db($dbname);
$db=mysql_connect($servername,$dbusername,$dbpassword) or die("can't connect"); mysql_select_db($dbname) or die("can't get db");