[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Web Design Discussion

Web Design Discussion Discussion of web design techniques, advice, browser issues, software, design firms.


Closed Thread
 
LinkBack Thread Tools
Old 03-14-2006, 11:02 AM   #1 (permalink)
Senior Member
 
Xyzer's Avatar
 
Join Date: Aug 2005
Location: United Kindom
Posts: 1,506
90.70 NP$ (Donate)

Xyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to all

Tsunami Relief AIDS/HIV
Php Gone Nuts

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">&nbsp;<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">&nbsp;<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
Xyzer is offline  
Old 03-14-2006, 12:25 PM   #2 (permalink)
NamePros Regular
 
Noobie's Avatar
 
Join Date: Feb 2006
Location: Montreal, Quebec, Canada
Posts: 324
66.75 NP$ (Donate)

Noobie is on a distinguished road


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 Code:
$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
__________________
Goldkey.com is a scam
What's your BMI? | Timestamp Generator
Noobie is offline  
Old 03-18-2006, 02:54 PM   #3 (permalink)
New Member
 
Join Date: Mar 2006
Location: Bucharest, Romania
Posts: 5
0.00 NP$ (Donate)

Aris is an unknown quantity at this point


It looks ok to me. Maybe you fixed it.
Aris is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tutorial: Getting started with PHP (The Basics) deadserious Webmaster Tutorials 60 11-17-2007 11:35 AM
Great Scripts for Sale With Resale Rights! Zeeble Scripts For Sale 20 01-04-2006 01:39 AM
Googlism - What does google think of you? deadserious The Break Room 55 12-15-2005 09:09 AM

Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 07:09 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85