cturner Posted September 25, 2007 Share Posted September 25, 2007 I have commented out a lot of my code and have realised that the code below is what the problem is. I have placed ini_set('display_errors', 'on'); error_reporting(E_ALL); at the very top of the page. No errors are displaying. However I can't see what the problem could be. So can someone please help me solved the blank page problem? Thanks in advance. $query6 = mysql_query("SELECT id, menuname, pagetitle, submenu, subid FROM pages LEFT JOIN menu ON pages.menuid = menu.id WHERE menu.pagetitle != 'Home' AND menu.menuname != 'Alone'") or die ("Could not query because: ".mysql_error()); while ($row6 = mysql_fetch_array($query6)) { echo "<img name=\"".$row6['pagetitle']."\"btn src=\"".$row6['button']."btn.jpeg\" width=\"110\" height=\"23\" border=\"0\" id=\"".$row6['pagetitle']."btn\" usemap=#m_".$row6['pagetitle']."btn alt=".$row6['pagetitle']." />\n"; echo "<map name=\"m_".$row6['pagetitle']."btn\" id=\"m_".$row6['pagetitle']."btn\">\n"; echo "<area shape=\"rect\" coords=\"0,0,200,23\" href=\"page.php?page=".$row6['pagetitle']."\" alt=\"".$row6['pagetitle']."\" onmouseout=\"MM_menuStartTimeout(1000);\" onmouseover=\"MM_menuShowMenu(\'MMMenuContainer0925095706_".$row6['menuid']."\', \'MMMenu0925095706_".$row6['menuid']."\',200,0,\'".$row6['pagetitle']."btn\');\" />\n"; echo "</map>\n"; echo "<div id=\"MMMenuContainer0925095706_".$row6['menuid']."\">\n"; echo "<div id=\"MMMenu0925095706_".$row6['menuid']."\" onmouseout=\"MM_menuStartTimeout(1000);\" onmouseover=\"MM_menuResetTimeout();\">\n"; echo "<a href=page.php?page=".$row6['pagetitle']." id=MMMenu0925095706_".$row6['menuid']."_Item_".$row6['menuid']." class=MMMIFVStyleMMMenu0925095706_".$row6['menuid']." onmouseover=MM_menuOverMenuItem(\'MMMenu0925095706_".$row6['menuid']."\'"");>\n"; echo $row6['pagetitle']."\n"; echo "</a>\n"; echo "<a href=page.php?page=".$row6['pagetitle']." id=MMMenu0925095706_".$row6['menuid']."_Item_".$row6['subid']." class=MMMIVStyleMMMenu0925095706_".$row6['menuid']." onmouseover=MM_menuOverMenuItem(\'MMMenu0925095706_".$row6['menuid']."\', \'".$row['subid']."\');>\n"; echo "<span class=MMMenuItemSpanMMMenu0925095706_".$row6['menuid'].">".$row6['pagetitle']."</span>\n"; echo "<img src=\"arrows.gif\" alt=\"\" class=\"MMArrowStyleMMMenu0925095706_".$row6['menuid']."\" />\n"; echo "</a>\n"; echo "</div>\n"; echo "<div id=MMMenu0925095706_".$row6['menuid']."_".$row['subid']." onmouseout=\"MM_menuStartTimeout(1000);\" onmouseover=\"MM_menuResetTimeout();\">\n"; echo "<a href=page.php?page=".$row6['pagetitle']." id=MMMenu0925095706_".$row6['menuid']."_".$row6['subid']."_Item_".$row6['menuid']." class=MMMIFVStyleMMMenu0925095706_".$row6['menuid']."_".$row6['subid']." onmouseover=MM_menuOverMenuItem(\'MMMenu0925095706_".$row6['menuid']."_".$row6['subid']."\');>\n"; echo $row6['pagetitle']."\n"; echo "</a>\n"; echo "</div>\n"; echo "</div>\n"; echo "</div>\n"; } Quote Link to comment https://forums.phpfreaks.com/topic/70683-solved-displaying-just-a-blank-page/ Share on other sites More sharing options...
Daniel0 Posted September 25, 2007 Share Posted September 25, 2007 Perhaps the statement in the while loop never evaluates to true (i.e. the code in the block isn't run)? Quote Link to comment https://forums.phpfreaks.com/topic/70683-solved-displaying-just-a-blank-page/#findComment-355258 Share on other sites More sharing options...
cturner Posted September 25, 2007 Author Share Posted September 25, 2007 Problem solved. Quote Link to comment https://forums.phpfreaks.com/topic/70683-solved-displaying-just-a-blank-page/#findComment-355269 Share on other sites More sharing options...
Daniel0 Posted September 25, 2007 Share Posted September 25, 2007 Then what was the problem? Quote Link to comment https://forums.phpfreaks.com/topic/70683-solved-displaying-just-a-blank-page/#findComment-355274 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.