【发布时间】:2020-06-01 12:49:30
【问题描述】:
这段代码有问题,有什么帮助吗?
$var = reset($sql -> select(array(
'table' => 'news',
'join' => array('table' => 'story', 'where' => 'id = post_id'),
'where' => array("id = $id", 'or', "url = $id")
)));
错误:
Strict Standards: Only variables should be passed by reference in $query = reset( $sql->select(array( 'table' => 'news', 'where' => $where ))); Strict Standards: Only variables should be passed by reference in
【问题讨论】:
-
你使用哪个库? $sql是什么类型的?
标签: php