语法不正确 - 无法写入第二个表

时间:2014-06-26 15:08:58

标签: sql syntax

$sql .= "INSERT INTO LOGcopy      (CallName,CallStNo,CallStDir,CallStreet,CallIssue,CallMisc,CallPhone,status,date,dataentry,    [key]) values
("; $sql .= "'".$values['CallName']."',
"; $sql .= "'".$values['CallStNo']."',
"; $sql .= "'".$values['CallStDir']."',
"; $sql .= "'".$values['CallStreet']."',
"; $sql .= "'".$values['CallIssue']."',
"; $sql .= "'".$values['CallMisc']."',
"; $sql .= "'".$values['CallPhone']."',
"; $sql .= "'".$values['status']."',
"; $sql .= "'".$values['date']."',
"; $sql .= "'".$values['dataentry']."',
"; $sql .= "".$keys['key'].""; $sql .= ")"; CustomQuery($sql);
return true;

此语法无法将值插入名为LOGCopy的其他表中,我找不到失败的语法。

0 个答案:

没有答案