Hello, I'm a little new to PHP and I'm having trouble with a problem that I'm working on. Basically I want to take information in a database and put it into a 2 dimensional array. Is there an easy way to do this? The array has to be able to change with the size of the database. I am eventually going to have another array compared to it to see how each row scores against against it. Thank you for your help!
assuming your fileds are a,b and c.
while ($row = mysql_fetch_array($result)) { $tmp[]['a'] = $row['a']; $tmp[]['b'] = $row['b']; $tmp[]['c'] = $row['c']; }