I'm getting the error:
"Fatal error: Cannot use object of type stdClass as array in" on line 183
From this code:
$getvidids = $ci->db->query(
"SELECT * FROM videogroupids " .
"WHERE videogroupid='$videogroup' AND used='0' LIMIT 10");
foreach ($getvidids->result() as $row){
$vidid = $row['videoid']; //This is line 183
}
Anyone know what's wrong with the above code? Or what this error means?
$rowis of type stdClass, and that you should access its member variables using$row->videoidrather than$row['videoid'].