|
-
Sep 5th, 2004, 02:20 AM
#1
Thread Starter
Addicted Member
Evil tables!
Okay, so here's the problem (it's writtin in PHP...so..whatever):
My code (below) to display a entries in a table is fine..I think. When I view the page in Firefox, it's good, BUT when I refresh, with no changes having been made, the bottom 2 (I only have 3 entries at the moment) tables take up 100% width, instead of 80%. The source says 80% as width, however. Now, when I tried this in Internet Explorer, they stayed the same, all fine and dandy. Anyone know what's going on?
PHP Code:
$i=0;
$query=mysql_query("SELECT * FROM packagestable") or die(mysql_error());
$num=mysql_num_rows($query);
//echo "\n<br \><br \>";
while($i<$num)
{
$title=mysql_result($query,$i,"title");
$author=mysql_result($query,$i,"author");
$descr=mysql_result($query,$i,"description");
$price=mysql_result($query,$i,"price");
$lang=mysql_result($query,$i,"language");
echo "\n\n\n<center \><table width=80% border=1 cellpadding=2 cellspacing=1 \>\n";
echo "<tr \><td \><font face=verdana size=1 \>Package Name:</td \>\n";
echo "<td ><font face=verdana size=1 \>" . $title . "</td \></tr \>\n";
echo "<tr \><td \><font face=verdana size=1 \>Programmer(s):</td \>\n";
echo "<td ><font face=verdana size=1 \>" . $author . "</td \></tr \>\n";
echo "<tr \><td \><font face=verdana size=1 \>Language(s):</td \>\n";
echo "<td ><font face=verdana size=1 \>" . $lang . "</td \></tr \>\n";
echo "<tr \><td \><font face=verdana size=1 \>Price:</td \>\n";
echo "<td ><font face=verdana size=1 \>". $price . "</a ></td \></tr \>\n";
echo "<tr \><td \><font face=verdana size=1 \>Description:</td \>\n";
echo "<td ><font face=verdana size=1 \>". $descr . "</td \></tr \>\n";
echo "<tr \><td \><font face=verdana size=1 \>Order:</td \>\n";
echo "<td ><a href=\"mailto:[email protected]?subject=Order" . $i . "\" \>Order Me </td \></tr \>\n";
echo "</table \></center \><br \><br \><br \>\n";
$i++;
}
echo "\n";
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|