SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Wizard GoldFire's Avatar
    Join Date
    Oct 2002
    Location
    Oklahoma City, OK
    Posts
    1,517
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation Problem With Tables!!

    I used layers before, but they didn't work in all browsers so I am trying to transfer to pure tables. But I am having some problems. I completely re-did the coding to try and fix it. Got rid of any layers. But now I can't get the body of the page to go next to the menu and under the top menu. The page I am testing on is http://www.schooglepets.net/test3.php

    My new code:



    PHP Code:
    <?php session_start(); ?>
    <? 
    include ("preferences.inc.php"); ?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

    <html>
    <head>
    <meta name="Description" content="SchooglePets, a community of virtual pet owners.  You can adopt a pet, raise it, feed, it, play games, earn points, chat, interact with other people, explore worlds, and much more!  Best of all it's FREE!">
    <meta name="Keywords" content="pets, pet, games, game, virtual, chat, fun, prizes, play, virtual pet, kids">
    <title></title>
    <style type="text/css">
          A:link {text-decoration:none}
          A:visited {text-decoration:none}
          A{COLOR:#000099;FONT-FAMILY:verdana,arial,helvetica;FONT-SIZE:10pt;TEXT-DECORATION:none}
          TD,P,body{FONT-FAMILY:verdana,arial,helvetica;FONT-SIZE:10pt;}
          A:hover{COLOR:#990000;}
        </style>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <script language="JavaScript" type="text/JavaScript">
    Menu Rollover Content Here
    </script>
    </head>
    <body onLoad="MM_preloadImages('images/pd2.gif','images/explore2.gif','images/games2.gif','images/shops2.gif','images/chat2.gif','images/mail2.gif','images/news2.gif','images/help2.gif','images/login2.gif','images/logout2.gif','/images/pd2.gif','/images/explore2.gif','/images/games2.gif','/images/shops2.gif','/images/chat2.gif','/images/mail2.gif','/images/news2.gif','/images/help2.gif','/images/login2.gif','/images/logout2.gif')" bgcolor="white" link="#000099" vlink="#000099" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
    <table border=0 cellpadding=0 cellspacing=0 width=700>
    <tr><td bgcolor=#006600 valign=bottom colspan=2 width=690 height=67><a href="http://www.schooglepets.net/index.php"><img src="/images/schoogle_pets_logo.gif" border=0 width=138 height=67 alt=""></a><img src="/images/welcome_banner.gif" border=0 width=552 height=67 alt="Welcome To SchooglePets"></td></tr>
    <tr><td valign=top width=700><table width=700 border=0 cellspacing=0 cellpadding=0 bgcolor=#006600><tr><td width=700>
    <a href="http://www.schooglepets.net/pd.php" target="_top" onClick="MM_nbGroup('down','group1','pd','',1)" onMouseOver="MM_nbGroup('over','pd','/images/pd2.gif','',1)" onMouseOut="MM_nbGroup('out')"><img src="/images/pd.gif" alt="Pet Domain" name="pd" border="0" onload=""></a>
    <a href="http://www.schooglepets.net/explore.php" target="_top" onClick="MM_nbGroup('down','group1','explore','',1)" onMouseOver="MM_nbGroup('over','explore','/images/explore2.gif','',1)" onMouseOut="MM_nbGroup('out')"><img style="position:absolute; top:65px; left:140px" name="explore" src="/images/explore.gif" border="0" alt="Explore Androdia" onLoad=""></a>
    <a href="http://www.schooglepets.net/games/" target="_top" onClick="MM_nbGroup('down','group1','games','',1)" onMouseOver="MM_nbGroup('over','games','/images/games2.gif','',1)" onMouseOut="MM_nbGroup('out')"><img style="position:absolute; top:65px; left:278px" name="games" src="/images/games.gif" border="0" alt="Games" onLoad=""></a>
    <a href="http://www.schooglepets.net/shops.php" target="_top" onClick="MM_nbGroup('down','group1','shops','',1)" onMouseOver="MM_nbGroup('over','shops','/images/shops2.gif','',1)" onMouseOut="MM_nbGroup('out')"><img style="position:absolute; top:65px; left:416px" name="shops" src="/images/shops.gif" border="0" alt="Androdia City" onLoad=""></a>
    <a href="http://www.schooglepets.net/chat.php" target="_top" onClick="MM_nbGroup('down','group1','chat','',1)" onMouseOver="MM_nbGroup('over','chat','/images/chat2.gif','',1)" onMouseOut="MM_nbGroup('out')"><img style="position:absolute; top:65px; left:554px" name="chat" src="/images/chat.gif" border="0" alt="Chat" onLoad=""></a>
    </td></tr></table>
    <tr><td valign=top width=140><table width=140 border=0 cellspacing=0 cellpadding=0 bgcolor=#006600><tr><td width=140>
    <img style="position:absolute; top:110px; left:140px" src="/images/top_menu_bottom.gif" border=0 width=570 height=30></td></tr></table>
    <tr><td valign=top width=140><table width=140 border=0 cellspacing=0 cellpadding=0 bgcolor=#006600><tr><td width=140>
    <a href="http://www.schooglepets.net/mail.php" target="_top" onClick="MM_nbGroup('down','group1','mail','',1)" onMouseOver="MM_nbGroup('over','mail','/images/mail2.gif','',1)" onMouseOut="MM_nbGroup('out')"><img name="mail" src="/images/mail.gif" border="0" alt="SchoogleMail" onLoad=""></a>
    <a href="http://www.schooglepets.net/news.php" target="_top" onClick="MM_nbGroup('down','group1','news','',1)" onMouseOver="MM_nbGroup('over','news','/images/news2.gif','',1)" onMouseOut="MM_nbGroup('out')"><img name="news" src="/images/news.gif" border="0" alt="News" onLoad=""></a>
    <a href="http://www.schooglepets.net/help.php" target="_top" onClick="MM_nbGroup('down','group1','help','',1)" onMouseOver="MM_nbGroup('over','help','/images/help2.gif','',1)" onMouseOut="MM_nbGroup('out')"><img name="help" src="/images/help.gif" border="0" alt="Help" onLoad=""></a>
    <a href="http://www.schooglepets.net/login.php" target="_top" onClick="MM_nbGroup('down','group1','login','',1)" onMouseOver="MM_nbGroup('over','login','/images/login2.gif','',1)" onMouseOut="MM_nbGroup('out')"><img name="login" src="/images/login.gif" border="0" alt="Login" onLoad=""></a>
    <a href="http://www.schooglepets.net/logout.php" target="_top" onClick="MM_nbGroup('down','group1','logout','',1)" onMouseOver="MM_nbGroup('over','logout','/images/logout2.gif','',1)" onMouseOut="MM_nbGroup('out')"><img name="logout" src="/images/logout.gif" border="0" alt="Logout" onLoad=""></a>
    </td></tr></table>
    <table width=140 border=0 cellspacing=0 cellpadding=0 bgcolor=#006600><tr><td align=center width=135><br>
    <p align=center>
    <?php
        
    require(getenv('DOCUMENT_ROOT').'/presskit/phpadsnew.inc.php');
        if (!isset(
    $phpAds_context)) $phpAds_context = array();
        
    $phpAds_id view (''0'''''0'$phpAds_context);
    ?></p>
    <p>
     <?
                    $name 
    $HTTP_COOKIE_VARS["usernamecookie"];
                    if (
    $name)
                    {
                    
    ?>
                    <center><font size=1>user :  <b><a href="http://www.schooglepets.net/profile.php?usersearch=<?
    include("preferences.inc.php");
    $user $HTTP_COOKIE_VARS["usernamecookie"];
    print 
    $user;
    ?>"><?
    include("preferences.inc.php");
    $user $HTTP_COOKIE_VARS["usernamecookie"];
    print 
    $user;
    ?></a></b></font><br>
    <center><font size=1>pet :  <b><a href="http://www.schooglepets.net/mypets.php?petsearch=<?
    include("preferences.inc.php");
    $thepet mysql_query("SELECT name FROM tblPets WHERE owner = '$user'");
    $the_pet mysql_fetch_array($thepet);
    print 
    $the_pet[name];
    ?>"><?
    include("preferences.inc.php");
    $thepet mysql_query("SELECT name FROM tblPets WHERE owner = '$user'");
    $the_pet mysql_fetch_array($thepet);
    print 
    $the_pet[name];
    ?></a></b></font><br>
    <font size=1>SL :
    <?
    include("preferences.inc.php");
    $query "SELECT points FROM tblUsers WHERE username = '$user'";
    $result mysql_query($query);
    $points mysql_fetch_row($result);
    Echo 
    "".$points[0];
    ?></font><p>
    <form action=profile.php>
    <input type='text' name='usersearch' size='12'><input type=submit value=go><br>
    <font size=1>SchoogleSearch</font></form>


    </center>
    <?
    }
    else
    {
        print 
    "";
    }
    ?></td></td></tr>
    <tr><td colspan=2><img src="/images/menu_bottom.gif" height=30 width=140></td></tr></table></table>
    </td><td valign=top width=600 onmouseover="document.all.ol.style.visibility='hidden';">
    <table width=600 border=0 cellspacing=0 cellpadding=0>
    <tr>
    <td width=600 valign=top>
                <b>SchooglePets</b>, a community of virtual pet owners.  You can adopt a pet, raise it, feed it, play games, earn points, chat, interact with other people, explore worlds, and much more!  Best of all it's <b>FREE!</b>
                <br><hr width=250 size=1 noshade><br><br>
                <p align=center>
                <img src="/images/vertical_line.gif" height=200 width=1 alt="Vertical Line"></p>
                <table width=175 border=0 cellspacing=0 cellpadding=0><tr>
                <td bgcolor="#009900" width=175 valign=top>
                            <img src="/images/news_flash.gif" alt="News Flash!"></tr></td></table>
                            <table width=175 border=0 cellspacing=0 cellpadding=6>
                            <tr>
                <td bgcolor="#009900" width=175 valign=top>
                      <p><font size=2><center><b>Adopt A Pet - Pulls Out of Beta!</b></center></font></p>
                      <p align=center><a href="http://www.schooglepets.net/adopt.php"><img src=/images/adopt_announce.gif alt="Adopt A Pet" width=150 height=150 border=0></a></p>
                      <p><font size=1><b></center>Adopt a pet...</b><br>Adopt A Pet has pulled out of beta!  The full version is here with all the bugs fixed!  New descriptions of the pets also.  Lots of behind the scenes work has been done during beta and without beta testers there would be no Adopt A Pet...thank you all beta testers!</font></p>
                                </td>
                  </tr>
                </table>
                <td align=left width=200 valign=top>
                <a href="register.php"><img src="/images/sign_up.gif" border=0 alt="Sign Up!"></a>
                <a href="flash_intro.html"><img src="/images/flash_intro_button.gif" border=0 alt="SchooglePets Flash Intro"></a>
                <a href="contest.php"><img src="/images/contests_button.gif" border=0 alt="Contests"></a>
                <a href="polls.php"><img src="/images/polls_button.gif" border=0 alt="Polls"></a>
                    </td>
                  </tr>
                </table>
          <!--footer-->
      </body>
    </html>

  2. #2
    gingham dress, army boots... silver trophy redux's Avatar
    Join Date
    Apr 2002
    Location
    Salford / Manchester / UK
    Posts
    4,838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    not a reply to your query, but looking at your code, it strikes me that you're using the
    Code:
    include ("preferences.inc.php");
    so many times...you only need to include a file once, at the beginning of your document. effectively, you're bogging down your code with unnecessary include statements...
    re·dux (adj.): brought back; returned. used postpositively
    [latin : re-, re- + dux, leader; see duke.]
    WaSP Accessibility Task Force Member
    splintered.co.uk | photographia.co.uk | redux.deviantart.com

  3. #3
    Non-Member
    Join Date
    Jan 2003
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It looks like you have too many <td>, <tr> and <table> tags out of sync. I'd open it in a WYSIWYG program like Dreamweaver or something which highlights all the tags and shows you when you have unecessary or misplaced tags.


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
  •