修改前
foreach($gg_result as $v)
{
$v['task_black_user'] = $this->index_model->gettask_black_user($_SESSION['id'],$v['id']);
$v['black_white'] = (int)$v['black_white'];
$v['ear_eye_user'] = $this->index_model->get_eareye_user($_SESSION['id']);
$gg_result_n[] = $v;
}
修改后:
$tmp4 = $this->index_model->get_eareye_user($_SESSION['id']);
foreach($gg_result as $v)
{
$v['task_black_user'] = $this->index_model->gettask_black_user($_SESSION['id'],$v['id']);
$v['black_white'] = (int)$v['black_white'];
$v['ear_eye_user'] = $tmp4;
$gg_result_n[] = $v;
}
报错:
Message: Call to a member function real_escape_string() on boolean
Filename: mysqli/mysqli_driver.php
Line Number: 374
|