Fatal error: Cannot use object of type stdClass as array in
CodeIgniter returns result rows as objects, not arrays. From the user guide:
result()
This function returns the query result as an array of objects, or an empty array on failure.
You'll have to access the fields using the following notation:
foreach ($getvidids->result() as $row) {
$vidid = $row->videoid;
}
if you really want an array instead you can use:
$getvidids->result_array()
which would return the same information as an associative array.