I have entered the world of arrays and I am revising some of the PHP scripts I've written and I want to use MD Arrays.
So far, I have ran queries and display the results from _var where the query results are dumped.
I have come to a point where this is not the best situation for me and I figure that I can solve my problem if I could treat my query's result as a MD Array.
Say my query returns 1500 rows and each row has 10 columns. I want to point to any row + column dynamically using numbers in lieu of aliases.
I tried
but when I try to print values off the array by using
nothing prints. I get no errors nor content on screen.
What say you?
Thanks,
Jose
So far, I have ran queries and display the results from _var where the query results are dumped.
I have come to a point where this is not the best situation for me and I figure that I can solve my problem if I could treat my query's result as a MD Array.
Say my query returns 1500 rows and each row has 10 columns. I want to point to any row + column dynamically using numbers in lieu of aliases.
I tried
Code:
$rows = array(mysql_fetch_array($query));
but when I try to print values off the array by using
Code:
print $rows[10][10];
nothing prints. I get no errors nor content on screen.
What say you?
Thanks,
Jose