我知道这真的很简单,我已经有几年没有接触过 PHP 和 SQL 了。
这有效
$mysqli->query("INSERT INTO
sonyCES2013.registration(id,firstName,lastName,telephone,outlet,comfirm,preferTime,date) 值 (NULL,Cat, 'Catherine', 'Cat@gmail.com', '123-456-4561', 'Some Text', '是', '4:00pm' ,'1/09/14')");
这不起作用
$mysqli->query("INSERT INTO
sonyCES2013.registration(id,firstName,lastName,telephone,outlet,comfirm,preferTime,date) 值 (NULL,{$fName},{$lName},{$eMail},{$telephone},{$outlet},{$comfirmation},{ $preferTime},{$day})");
帮助,是的,我确实检查了变量是否为空,并且我确实尝试在每个 {} 之间没有 ``