problem description
the db public function getRow method is called somewhere, and the return value is:
2018-09-14 17:11:50 ERR: Array
(
[a] =>
[b] =>
)
but print out that the running mysql statement has a value in Navicat!
this method is also called elsewhere, which is normal. Even if this section runs the same business to process other data, the return value is normal
the environmental background of the problems and what methods you have tried
check that the sql received by the getRow internal method is normal (external operation is also valuable),
related codes
/ / Please paste the code text below (do not replace the code with pictures)
var_dump($sql); // var_dump
$res = $this->query($sql,"",$param);
if ($res !== false)
{
$res = mysql_fetch_assoc($res);
logger::write(print_r($res, 1));
....
var_dump(901);
var_dump($res); // 2018-09-14 17:11:50 ERR: Array
//(
// [a] =>
// [b] =>
// )
return $res;
}
what result do you expect? What is the error message actually seen?
I would like to ask which direction to debug, rivers and lakes emergency, thank each boss for his message!