我有一个名为login的MySQL数据库表,用于存储用户信息和登录详细信息。该表一直运行良好(插入,更新和选择),但从昨天开始,该表不是从我的php codeigniter脚本插入数据,而是选择和更新。
另外,当我手动插入一行(在phph Myadmin中)时,插入很好。该表只有470行,使用InnoDB ingine和192KB。可能是什么问题呢?数据库位于共享主机上。这是php代码
function insertUser($pfNo, $fName, $mName, $lName, $email, $username, $encPassword, $userType,$preuniYear, $salt, $creationDate){
$data = array(
'pfNo' => $pfNo,
'fName' => $fName,
'mName' => $mName,
'lName' => $lName,
'email' => $email,
'username' => $username,
'password' => $encPassword,
'userType' => $userType,
'year' => $preuniYear
);
$query1 = $this->db->insert('login', $data);
$data = array(
'username' => $pfNo,
'creationDate' => $creationDate
);
$query3 = $this->db->insert('systemdetails', $data);
if ($query1 && $query3) {
return true;
} else {
return false;
}
}`