SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Evangelist cturner01's Avatar
    Join Date
    Jun 2006
    Location
    My computer
    Posts
    408
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Displaying just a blank page???

    I have commented out a lot of my code and have realised that the code below is what the problem is. I have placed
    Code PHP:
    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.

    Code PHP:
    	$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";
    	}

  2. #2
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Are you sure that the query is actually returning anything?
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona

  3. #3
    SitePoint Evangelist cturner01's Avatar
    Join Date
    Jun 2006
    Location
    My computer
    Posts
    408
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I know that there is data in those tables. It just isn't displaying anything.

  4. #4
    SitePoint Evangelist cturner01's Avatar
    Join Date
    Jun 2006
    Location
    My computer
    Posts
    408
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Problem solved.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •