我在一個類中有兩個 PHP 變量,它們是整數($id 和 $descCode)。我試圖讓這些變成我的SQL函數調用的字符(數據庫正在尋找這些是CHAR 2和CHAR 10分別)。出于某種原因,這引發了一個錯誤:使用參數標記或 NULL 無效我到底做錯了什么?$results = array();$results = $db->select("SELECT newCodeTest(:id,:desc) as newCode FROM testTable", [ 'id' => (string)$id, 'desc' => (string)$descCode ]);
- 1 回答
- 0 關注
- 166 瀏覽
添加回答
舉報
0/150
提交
取消
