2
Fatal error: Call to undefined method CI_DB_mysql_driver::num_rows() in C:\Development\Zend\Apache2\htdocs\system\application\controllers\signup.php on line 47
任何人都可以幫助我,這個錯誤讓我瘋狂。使用最新的CodeIgniter。PHP錯誤讓我瘋狂
function isUniqueUsername($string) {
$query = $this->db->select('username')
->from('olm_user')
->where('username', $string);
if ($query->num_rows()) {
return false;
} else {
return true;
}
}
謝謝,問題解決了! – 2010-06-22 07:03:37