Problems with table layout...
Posted: Mon Oct 25, 2004 8:46 pm
Hi,
I'm trying to create a navigation bar generated from a query to MySQL using PHP. Everything works fine - except I can't seem to get the row in the table to look quite right. I'd like to have a fairly narrow row in height and I keep getting these big chunky rows. What am I doing wrong? I seemed to have been able to figure out PHP - but am having trouble with the basic HTML now!!!
Here's my code:
I'm trying to create a navigation bar generated from a query to MySQL using PHP. Everything works fine - except I can't seem to get the row in the table to look quite right. I'd like to have a fairly narrow row in height and I keep getting these big chunky rows. What am I doing wrong? I seemed to have been able to figure out PHP - but am having trouble with the basic HTML now!!!
Here's my code:
Code: Select all
<tr><?php while ($pagerow = mysql_fetch_array ($pageresult))
{
if ($_SESSIONї'page'] == $pagerowї'contentPage'])
{
?>
<td valign="middle" style="vertical-align:middle" align="center" bgcolor="#B0BA91"><p><a href="content.php?section=<?php echo $pagerowї'contentSection'];?>
&subsection=<?php echo $pagerowї'contentPage'];?>&page=<?php echo $pagerowї'contentPage'];?>"><h6><font color="#FFFFFF"><?php echo $pagerowї'contentTitle']?></font></h6></a>
<?php
}
else
{
?>
<td valign="middle" style="vertical-align:middle" align="center"><p><a href="content.php?section=<?php echo $pagerowї'contentSection'];?>
&subsection=<?php echo $pagerowї'contentPage'];?>&page=<?php echo $pagerowї'contentPage'];?>"><h6><?php echo $pagerowї'contentTitle']?></h6></a>
<?php
}
?>
</td><?php } ?>