NameSilo

Php Gone Nuts

Spaceship Spaceship
Watch

Xyzer

VIP Member
Impact
12
Hi,

I am having a problem with the code below, it looks like i havent closed one of the content boxes but i have, the site to see it broken at is http://www.x6core.com
Im not sure what is wrong, but the code is below if you can help.

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><head>
<style type="text/css">
<!--
a:link {
	color: 3E7B0B;
	text-decoration: none;
}
a:visited {
	color: 3E7B0B;
	text-decoration: none;
}
a:hover {
	font-weight: bold;
	color: 3E7B0B;
	text-decoration: underline;
}
-->
</style>
<title>X6 Core Reloaded [V1.1]</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<!-- DO NOT DELETE THE MARGIN TAGS, THESE STOP WHITE GAPS ON ALL EDGES OF THE PAGE -->



<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <!-- START OF GREEN HEADER -->
	<td background="images/headerbg.gif" height="112"><img src="images/logo.gif" width="379" height="113"></td>
	<td background="images/headerbg.gif" height="112"> <img src="/images/trafficsurferbanner.gif"</td>
  </tr>
  <!-- END OF GREEN HEADER -->
 <!-- START OF GREY HEADER BAR -->
  <tr>
    <td colspan="2" background="images/headerbar.gif" height="32"></td>
  </tr>
  <!-- END OF GREY HEADER BAR -->
   <!-- START OF MAIN CONTENT AREA -->
   <tr>
    <td colspan="2"> <table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top" width="220" <!-- START OF NAVIGATION --><table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="4%"><img src="images/lborder.gif" width="34" height="24"></td>
                <td width="90%" background="images/bgborder.gif"><div align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Navigation</font></div></td>
                <td width="6%"><img src="images/rborder.gif" width="2" height="24"></td>
              </tr>
              <tr>
                <td colspan="3"><table width="191" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000" style="border-collapse: collapse">
                    <tr>
                      <td> 
                        <!-- START OF CONTENT BOX CONTENT -->
                        <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
                          <tr> 
                            <td height="15" bgcolor="#EBEBEB"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>·</strong> 
                              <a href="?id=Home/News">Home</a></font></td>
                          </tr>
                          <tr> 
                            <td height="15"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>·</strong> 
                              <a href="?id=News Archive">News Archive</a></font></td>
                          </tr>
                           <tr> 
                            <td height="15" bgcolor="#EBEBEB"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>·</strong> 
                              <a href="?id=Downloads">Downloads</a></font></td>
                          </tr>
                          <tr> 
                            <td height="15"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>·</strong> 
                              <a href="?id=affiliates">Affiliates</a></font></td>
                          </tr>
                          <tr> 
                            <td height="15" bgcolor="#EBEBEB"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>·</strong> 
                              <a href="?id=contact">Contact Me</a></font></td>
                          </tr>
                        </table> 
                        <!-- END OF CONTENT BOX CONTENT -->
                      </td>
                    </tr>
                  </table></td>
              </tr>
            </table><!-- END OF NAVIGATION -->
			<br>
			<!-- START OF NAVIGATION --><table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="4%"><img src="images/lborder.gif" width="34" height="24"></td>
                <td width="90%" background="images/bgborder.gif"><div align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Stats</font></div></td>
                <td width="6%"><img src="images/rborder.gif" width="2" height="24"></td>
              </tr>
              <tr>
                <td colspan="3"><table width="96%" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000" style="border-collapse: collapse">
                    <tr>
                      <td> 
                        <!-- START OF CONTENT BOX CONTENT -->
						<center>
                        <font size="1" face="Verdana, Arial, Helvetica, sans-serif">
							text
						</font> 
						</center>
                        <!-- END OF CONTENT BOX CONTENT -->
                      </td>
                    </tr>
      			</tr>
            </table><!-- END OF NAVIGATION -->
			<br>
			<!-- START OF NAVIGATION --><table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="4%"><img src="images/lborder.gif" width="34" height="24"></td>
                <td width="90%" background="images/bgborder.gif"><div align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Catogories</font></div></td>
                <td width="6%"><img src="images/rborder.gif" width="2" height="24"></td>
              </tr>
              <tr>
                <td colspan="3"><table width="96%" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000" style="border-collapse: collapse">
                    <tr>
                      <td> 
                        <!-- START OF CONTENT BOX CONTENT -->
						<table>
                          <tr> 
                            <td height="15"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>·</strong> 
                              <a href="?id=photoshoptutorials">Photoshop Tutorials</a></font></td>
                          </tr>
						  <tr> 
                            <td height="15"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>·</strong> 
                              <a href="?id=htmltutorials">HTML Tutorials</a></font></td>
                          </tr>
						  <tr> 
                            <td height="15"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>·</strong> 
                              <a href="?id=windowstutorials">Windows Tutorials</a></font></td>
                          </tr>
						  </table>
                        <!-- END OF CONTENT BOX CONTENT -->
                      </td>
                    </tr>
                  </table></td>
              </tr>
			 
            </table><!-- END OF NAVIGATION --></td>
    <td width="100%" valign="top">  <!--MAIN CENTER CONTENT AREA START-->
            <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr> 
                <td><img src="images/lborder.gif" width="34" height="24"></td>
                <td width="100%" background="images/bgborder.gif"><div align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Content</font></div></td>
                <td><img src="images/rborder.gif" width="2" height="24"></td>
              </tr>
              <tr> 
                <td colspan="3"><table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000" style="border-collapse: collapse">
                    <tr> 
                      <td> <div align="center"> <font size="2" face="Verdana, Arial, Helvetica, sans-serif">
					  <?php

switch($_GET['id']) {

case "Home/News":
include('main.php');
break;

case "News Archive":
include('oldnews.php');
break;

case "Downloads":
include('downloads.php');
break;

case "Affiliates":
include('affiliates.php');
break;

case "contact":
include('contact.php');
break;

case "SignatureTutorial":
include('Signature1.php');
break;

case "linestutorial":
include('linestut.php');
break;

case "Photoshop":
include('photoshop.php');
break;

case "html":
include('html.php');
break;

case "windows":
include('windows.php');
break;

default:
include('main.php');
break;


}

?>
</font> 
                        </div></td>
                    </tr>
                    <tr>
                      <td bgcolor="#E8E8E8"><div align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Copyright 
                          2006 - X6 Core.com - All Rights Reserved </font></div></td>
                    </tr>
                  </table></td>
              </tr>
            </table>
            <!--MAIN CENTER CONTENT AREA END--></td>
    <td width="220" valign="top"><!-- START OF NAVIGATION --><table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="4%"><img src="images/lborder.gif" width="34" height="24"></td>
                <td width="90%" background="images/bgborder.gif"><div align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Our Tutorials</font></div></td>
                <td width="6%"><img src="images/rborder.gif" width="2" height="24"></td>
              </tr>
              <tr>
                <td colspan="3"><table width="96%" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000" style="border-collapse: collapse">
                    <tr>
                      <td> 
                        <!-- START OF CONTENT BOX CONTENT -->
                        <font size="1" face="Verdana, Arial, Helvetica, sans-serif">
						<a href="?id=SignatureTutorial">Cool Signature Tutorial</a><br>
						<a href="?id=linestutorial">Lines Tutorial</a></font> 
                        <!-- END OF CONTENT BOX CONTENT -->
                      </td>
                    </tr>
                  </table></td>
              </tr>
            </table><!-- END OF NAVIGATION -->
			<br>
			<!-- START OF NAVIGATION --><table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="4%"><img src="images/lborder.gif" width="34" height="24"></td>
                <td width="90%" background="images/bgborder.gif"><div align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Latest Reviews</font></div></td>
                <td width="6%"><img src="images/rborder.gif" width="2" height="24"></td>
              </tr>
              <tr>
                <td colspan="3"><table width="96%" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000" style="border-collapse: collapse">
                    <tr>
                      <td> 
                        <!-- START OF CONTENT BOX CONTENT -->
                        <font size="1" face="Verdana, Arial, Helvetica, sans-serif">text etc here</font> 
                        <!-- END OF CONTENT BOX CONTENT -->
                      </td>
                    </tr>
                  </table></td>
              </tr>
            </table><!-- END OF NAVIGATION -->
			<br>
			<!-- START OF NAVIGATION --><table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="4%"><img src="images/lborder.gif" width="34" height="24"></td>
                <td width="90%" background="images/bgborder.gif"><div align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Affiliates</font></div></td>
                <td width="6%"><img src="images/rborder.gif" width="2" height="24"></td>
              </tr>
              <tr>
                <td colspan="3"><table width="96%" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000" style="border-collapse: collapse">
                    <tr>
                      <td> 
                        <!-- START OF CONTENT BOX CONTENT -->
                        <font size="1" face="Verdana, Arial, Helvetica, sans-serif">
						fjk;jkl;jkl;f
						</font> 
                        <!-- END OF CONTENT BOX CONTENT -->
                      </td>
                    </tr>
                  </table></td>
              </tr>
            </table><!-- END OF NAVIGATION --></td>
  </tr>
</table>
</td>
  </tr>
  <!-- END OF MAIN CONTENT AREA -->
</table>

Fixed. Thanks
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Some advice (if you want it).

It seems like every time you add a section you'll need to modify your source code and add a 'case'.

Why not just try something like this:
PHP:
$id = $_GET['id']; 
if(!empty($id)){ 
  if (file_exists($id . ".php")) { 
     include($id. ".php"); 
  }else{ 
     include("error.php"); //error page not found 
  }                     
}else{ 
     include("index.php");//or some other default doc 
}

So a link like /?id=contact would load contact.php
 
1
•••
It looks ok to me. Maybe you fixed it.
 
0
•••

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Live Options
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back