我正在运行此PDO SQL查询:
$stmt = $pdo_conn->prepare("INSERT into ticket_updates (ticket_seq, notes, datetime, updatedby, customer, internal_message) values (:ticket_seq, :notes, :datetime, :updatedby, :customer, :internal_message) ");
$stmt->execute(array(':ticket_seq' => $ticketnumber,
':notes' => addslashes($message),
':datetime' => date("Y-m-d H:i:s"),
':updateedby' => $last_updated_by,
':customer' => 'Y',
':internal_message' => 'no'));
Run Code Online (Sandbox Code Playgroud)
但得到这个错误:
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY093]: Invalid parameter number: parameter was not defined' in /home/integra/public_html/autocheck/support_emails.php:479 Stack trace: #0 /home/integra/public_html/autocheck/support_emails.php(479): PDOStatement->execute(Array) #1 {main} thrown in /home/integra/public_html/autocheck/support_emails.php on line 479
Run Code Online (Sandbox Code Playgroud)
我不知道问题是什么,所有其他查询工作正常
| 归档时间: |
|
| 查看次数: |
99 次 |
| 最近记录: |