当我在我的本地主机( http://www.ajaxcrud.com/ )上测试ajaxcrud时。我得到了以下错误。
Fatal error: Call to undefined function q() in ajaxCRUD.class.php on line 1861以下是错误存在的地方。
function getFields($table){
$query = "SHOW COLUMNS FROM $table";
$rs = q($query); // Line 1861
$fields = array();
foreach ($rs as $r){
//r sub0 is the name of the field (hey ... it works)
$fields[] = $r[0];
$this->field_datatype[$r[0]] = $r[1];
}
if (count($fields) > 0){
return $fields;
}
return false;
}希望有人能帮我。非常感谢..。
发布于 2012-12-27 19:58:33
函数q()在ajaxCRUD文件夹内的preheader.php文件中定义。只需将其包含在ajaxCRUD.class.php之前。
https://stackoverflow.com/questions/14054280
复制相似问题