昨天我在做 php mysql 我写了一个查询
mysql_query("INSERT INTO `first` (`firstName`, `lastName`, `address1`, `city`, `state`, `zip`, `country`, `amount`, `date`) VALUES ('$firstName','$lastName','$address1','$city','$state','$zip','$country','$amount','$date')")
它对我不起作用,然后我的老板在下面写了查询
mysql_query("INSERT INTO `first` (`firstName`, `lastName`, `address1`, `city`, `state`, `zip`, `country`, `amount`, `date`) VALUES ('".$firstName."','".$lastName."','".htmlentities($address1)."','".$city."','".$state."','".$zip."','".$country."','".$amount."','".$date."')");
它有效!
第一次查询有什么问题吗..请帮帮我..