1
嘿,我是新手在CI所以请原谅!我想加盟笨2个表和我在这里得到这些错误在我的代码调用未定义的方法CI_DB_mysql_driver :: row_array()
调用未定义的方法CI_DB_mysql_driver :: row_array()在 C:\ XAMPP \ htdocs中\旅馆\程序\型号\上线16 payfees.php
我的方法代码是在这里像这些
public function payu($id,$month){
$where = "where generatebills.student_id='".$id."' and generatebills.month='".$month."'";
$query = $this->db->select('*')
->from('generatebills')
->join('student','student.student_id=generatebills.student_id')
->where($where);
return $query->row_array();
}
不要忘了' - >得到() '方法 – Ghost
@Ghost对不起,我不好,我下次更好,并且现在我正在得到一个sql语法错误,就像这样你在你的SQL语法中有一个错误;检查与您的MariaDB服务器版本相对应的手册,在第4行使用接近'generatebills.student_id =''和generatebills.month'''的正确语法。但请多谢各位! –