I'm tearing my hair out on what I think is a simple problem.
My query returns multiple rows. I know how many rows there are but what I want to do is to access each row in turn. Now I thought that my code puts the results into an array and I can access each element by:
$row_sections[x][y];
but something is going wrong.
Any ideas?
PHP Code:
mysql_select_db($database_localhost, $localhost);
$query_sections = "SELECT * FROM sections WHERE sections.window_type = '$type'";
$sections = mysql_query($query_sections, $localhost) or die(mysql_error());
$row_sections = mysql_fetch_array($sections);
$totalRows_sections = mysql_num_rows($sections);
Social Networking Bookmarks