PHP Help

What's on your mind?

Moderator: kosh

Post Reply
Altron

PHP Help

Post by Altron » Tue Aug 10, 2004 10:48 pm

Need... PHP... help... *Gasps for air*
(In therapy room, sitting on chair)

Well, it all started when I decided to add a new section to my website. That was back when it was in HTML format. I was sick of telling the HTML to make a new page on every single one of my pages, so I decided to convert to the religion of PHP.

My friend taught me well, covering the issues of page conversion and upkeep, but obviously it wasn't enough. I began to add new pages, and edited my menu.php file. Then, disaster! When I saved menu.php, the content was pushed below the bar, not next to it. Even the footer was down there! I've worked day and night for the past two days, but to no avail. I await the time when I can figure out what the hell went wrong with my site.

(This is true by the way. I guess I can post the code next post to see what happened.)

User avatar
Tachyon
Site Admin
Site Admin
Posts: 2814
Joined: Tue Feb 18, 2003 2:14 am
Location: Austin, TX
Contact:

Post by Tachyon » Tue Aug 10, 2004 10:53 pm

I won't be able to visit my own computer for a few days but when I do I'll pass you the links to the message boards I visit when I need PHP help.

Oh, I also have a link to a .htaccess article that your friend wants.
If you don't like the news then go make some of your own.

Altron

Post by Altron » Tue Aug 10, 2004 10:54 pm

Anyway, here's the code that keeps messing up and bumping my content downward.

Code: Select all

  <tr>
    <td class="content" vAlign="top" width="137" height="492" style="border-right-style: none; border-right-width: medium">
<table cellSpacing="1" cellPadding="4" width="129" border="0" height="24">
  <tr>
    <td class="titlebg" align="middle" bgColor="#6e94b7" width="119" height="6" style="background-color: #336699">
    <p align="left"><b>[Navigation]</B></td>
  </tr>
</table>
<table cellSpacing="1" cellPadding="4" width="129" border="0" height="13">
  <tr>
    <td class="catbg" bgColor="#dee7ef" height="4" width="119" style="background-color: #6394BD">
    <font size="1"><span style="font-weight: 400">\\General Content</span></font></td>
  </tr>
</table>
<table cellSpacing="1" cellPadding="4" width="128" border="0" height="25">
  <tr>
    <td class="catbg" bgColor="#dee7ef" height="4" width="118"><font size="1">\<a href="http://thesonicworld.net/mechinfinity/home1.php"><font color="#000000">Home</font></a><br>
    <b>\AU World Data</b><br>
    \<a href="uc_data1.php"><font color="#000000">UC World Data</font></a><span style="font-weight: 400"><br>
    \<a href="gallery1.php"><font color="#000000"><u>Image Gallery</u></font></a></span></font></td>
  </tr>
  </table>
<table cellSpacing="1" cellPadding="4" width="128" border="0" height="13">
  <tr>
    <td class="catbg" bgColor="#dee7ef" height="4" width="119" style="background-color: #6394BD">
    <font size="1"><span style="font-weight: 400">\\Fan Section</span></font></td>
  </tr>
  <tr>
    <td class="catbg" bgColor="#dee7ef" height="4" width="118"><font size="1">
    <span style="font-weight: 400">\<a href="fanart1.php"><font color="#000000"><u>Fan Art</u></font></a><br>
    \<a href="fanpoetry1.php"><font color="#000000"><u>Fan Poetry</u></font></a><br>
    \<a href="fanfiction1.php"><font color="#000000"><u>Fan Fiction</u></font></a></span></font></td>
  </tr>
</table>
<table cellSpacing="0" cellPadding="4" width="128" border="0" height="13" style="border-collapse: collapse" bordercolor="#111111" bgcolor="#6394BD">
  <tr>
    <td class="catbg" bgColor="#6394BD" height="4" width="118"><font size="1">
    \\Multimedia</font></td>
  </tr>
</table>
<table cellSpacing="1" cellPadding="4" width="128" border="0" height="13">
  <tr>
    <td class="catbg" bgColor="#dee7ef" height="4" width="118"><font size="1">
    <span style="font-weight: 400">\<a href="midi1.php"><font color="#000000"><u>MIDI Files</u></font></a></span></font><br>
    <font size="1">\<a href="mp3.1.php"><font color="#000000">MP3 Files </font>
    </a><br>
    <b>\Song Lyrics<br>
    \Song Translations<br>
    \Video Clips</b></font></td>
  </tr>
</table>
<table cellSpacing="1" cellPadding="4" width="128" border="0" height="13">
  <tr>
    <td class="catbg" bgColor="#dee7ef" height="4" width="119" style="background-color: #6394BD">
    <font size="1"><span style="font-weight: 400">\\Miscellaneous</span></font></td>
  </tr>
</table>
<table cellSpacing="1" cellPadding="4" width="128" border="0" height="13">
  <tr>
    <td class="catbg" bgColor="#dee7ef" height="4" width="118"><font size="1">
    <span style="font-weight: 400">\<a href="http://s6.invisionfree.com/Mech_Infinity_Forums"><u><font color="#000000">Message Board</font></u></a></span></font><br>
    <span style="font-weight: 400; font-size: 9pt">\</span><font size="1"><span style="font-weight: 400"><a href="links1.php"><font color="#000000"><u>Links</u></font></a></span></font><br>
    <span style="font-weight: 400; font-size: 9pt">\</span><font size="1" color="#000000"><a href="contact1.php"><span style="font-weight: 400; text-decoration:underline"><font color="#000000">Contac</font></span></a><u><span style="font-weight: 400; ">t</span></u></font></td>
  </tr>
</table>
    </td>

Waterslayer

Post by Waterslayer » Wed Aug 11, 2004 12:49 am

I'd start by covering those size and style parameters in the css. My pages look like this:

Code: Select all

<tr><td class="content"></td></tr>
Clean and simple. Organizing your code a bit more will make debugging easier.

Post Reply