Ok, I have a page coded in XHTML and CSS. I had the basic layout of the site complete, everything was fine, and I started to implement my php code.
I have a page where the php grabs records from the database and simply lists them in a list. But for some reason, when I have the PHP code in there, the footer of the page is in the middle of my page, below the content in the middle, but it covers the menu. Take a look:
http://www.jlhsband.com/site/pictures.php
I have tried CSS forums and they have tried to help me, telling me a fix and that they tested and worked, but it doesnt for me. Its driving me nuts.
The weird part is, I went to the pictures.php page, I viewed the source, copied it and created a new file and pasted the source in there and the problem goes away!!
http://www.jlhsband.com/site/test.php
The PHP code must be doing something to screw up my code! Anyone have any clue why this is happening? My PHP code looks like this:
<?
$query = mysql_query("SELECT * FROM picture_events WHERE season ='0506' ORDER BY event_date DESC");
if (mysql_num_rows($query) == 0){
?>
<li>There are currently no pictures available. Do you have pictures you would like to see on the site? Email us using the link to the right</li>
<?
} else {
while ($result = mysql_fetch_array($query)){
$title = $result['event_title'];
$desc = $result['event_desc'];
$date = date("m-d-Y", $result['event_date']);
if ($desc != ""){
$desc = " - " . $desc;
}
?>
<li><a href="pictures.php?date=<?=$date?>"><?=$date?> - <?=$title?></a><?=$desc?></li>
<?
}
}
?>
Thanks in advance!
Joe