I need to store results from a MySQL call to a multidimensional array. My code is as follows:
$db = mysql_connect("localhost", "admin", "password");
mysql_select_db("myDatabase",$db);
$query = "SELECT * FROM content WHERE filetype LIKE 'URL'";
$result = mysql_query($query);
for($i=0;$row = mysql_fetch_array($result);$i++){
$multiResults[$i] = array(mysql_fetch_row($row));
}
I assume that since the result of $row is an array that assigning it to the first element of another array would do the trick, but when I look at the results, I get nothing.
Thanks in advance.