0
錯誤消息:致命錯誤:調用一個成員函數執行()一個非對象PDO工作
致命錯誤:調用一個成員函數執行()非對象上線30
線29和30
$stmt = $pdo->prepare("INSERT INTO installs (customer_id, engineer_id, datetime, tracker, tracker_serial, tracker_sim, satnav, eco_plus, eco_plus_address, ttConnect, ttConnect_address, fms, remote_link, remote_link_address, remote_logbook, remote_logbook_address, registration, vehicle_make, vehicle_model, colour, mileage, box_location, comments, ip_address) VALUES (:1,:2,:3,:4,:5, :6, :7, :8, :9, :10, :11, :12, :13, :14, :15, :16, :17, :18, :19, :20, :21, :22, :23, :24)");
$stmt->execute(array("1" => $customer_id, "2" => $engineer_id, "3" => $date, "4" => $tracker, "5" => $tracker_serial, "6" => $tracker_sim, "7" => $satnav, "8" => $eco_plus, "9" => $eco_plus_address, "10" => $ttConnect, "11" => $ttConnect_serial, "12" => $fms, "13" => $remote_link, "14" => $remote_link_address, "15" => $remote_logbook, "16" => $remote_logbook_address, "17" => $registration, "18" => $vehicle_make, "19" => $vehicle_model, "20" => $colour, "21" => $mileage, "22" => $box_location, "23" => $comments, "24" => $ip_address));
我無法找到問題,PDO是工作在項目的其他疑問,幫助深表感謝。
你驗證列是正確的? – 2014-12-02 00:16:23
你可以顯示你的$ pdo文件。你在這個包括嗎? – silversunhunter 2014-12-02 00:55:21