I use a class that allows me perform certain queries. For example, I can get results from a table like this:
$myarray = $db->get_results("SELECT page FROM t1
WHERE item = '$book'");
foreach ( $myarray as $val )
{
// Access data using object syntax
echo $val->name;
}
My question is: how can I get these values into a normal indexed array?
Documentation for the class can be found here. For some reason I just can't seem to figure this one out.
😕