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?