Page 1 of 1

what am i doing wrong?

Posted: Fri Aug 16, 2002 11:14 pm
by m3mn0n

Code: Select all

while($row=mysql_fetch_array($q)){
echo "<table width=100%>\n";
echo "<tr>\n"; #one <tr> tag for each row

#printing date and attacktype...
echo "<td>$row&#1111;date]<td>$row&#1111;attack]";

#printing attacker and defender and result...
echo "<td>$row&#1111;attname] (#$row&#1111;attnum])<td><b>$row&#1111;attally]";
echo "<td>$row&#1111;defname] (#$row&#1111;defnum])<td><b>$row&#1111;defally]";
echo "<td>$row&#1111;loss]\n";

&#125;
the table that is displayed with these results is like a pyramid tiped to the right, big to small...

it worked perfectly a week ago, and i come back to it now and i find out that this went wack! :?

Does anyone know what's up?

Posted: Sat Aug 17, 2002 12:03 am
by Bill H
This line:
echo "<table width=100%>\n";
should not be inside the while loop.

Posted: Sat Aug 17, 2002 1:32 am
by m3mn0n
thanks alot

i figured these dumb links out like an hour after i post a request for help or search for a tutorial ;)