Ive tried so many times to do this but it keeps messing up making columns all over the place.
Bascically what i want is a script in php that uses a while loop to make a table 10 rows by 10 columes. When i try it it works, it shows each table cell with its contents but it shows them all on the same line instead of making a space every 10 colums and carrying on underneath.
This is part what i made which echos them all on the same line, if you know how to do this properly ignore this code anyway:
while ($row = mysql_fetch_array($result))
{
echo "";
extract($row);
echo"$PRODUCT";
echo " | ";
echo "
";
}
?>
On my select mySQL query which i havnt put in i limited it to bring back 20 rows. This code echos the variable $product 20 times in a straight line. Not 10, then 10 below.
Please help, i know its possible just cant do it.
2006-10-20
02:45:46
·
2 answers
·
asked by
peter s
1