
Budaum Budaum Budaum - 2010-07-29 03:43:05
Hello.
I'm having problems to access the columns from an executed query with the function MetabaseQueryAll.
Here is the code:
//------------//
$query = "SELECT 1 as num";
MetabaseQueryAll($database, $query, &$all);
//------------//
When I try to access the column num ( $all[0]['num'] ), I can't, I can access it only through $all[0][0].
Is there some way to get the association names instead the column with this class? -> like mysql_fetch_assoc() function
I need to access the results through an associative array.