I have coded
foreach($DB->query($query) as $row){
print_r($row);
which is giving result as
stdClass Object ( [follow_date] => 2012-04-17 [status] => 1 [user_id] => 8 ) stdClass Object ( [follow_date] => 2012-04-17 [status] => 2 [user_id] => 9 )
but when i am calling print_r($row[follow_date]);
, its giving error
Fatal error: Cannot use object of type stdClass as array in /homereports/bespoke_dialing_status.php on line 34
Can somebody tell what's the problem?
使用: $row->follow_date
访问内容。
我没有办法检查但我记得在类似的问题上使用类似$row->follow_date
。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.