8
我有一個CodeIgniter應用程序和SQL Server數據庫。我使用PDO作爲驅動程序,一切工作正常,但不是當我試圖保存包含單詞「select」或「selection」的數據時。當它包含使用CodeIgniter + PDO + SQL Server的「選擇」字時保存了兩次數據
例子:
$data = array();
$data[] = array('title' => 'all you neeed', 'description' => 'description here');
$data[] = array('title' => 'try this selection', 'description' => 'description here');
$this->db->insert_batch($this->table, $data);
不應該'$數據[]'包含ASSOC數組,而不是數字? –
是的,但這不是問題。 –
你可以檢查$ this-> db-> last_query(); – devrooms