Mark Sargent <powderkeg@xxxxxxxxxxxxxxxx> writes: > $i=0; > while ($i < $num){ > $product_type=mysql_result($result,$i,"product_type_detail"); > echo "<tr><td><? echo $product_type ?></td></tr>" > } > $i++ You should put "$i++" into the while loop. And you should add an ";" at the end of the echo line as well as at the end of "$i++". With kind regards, Fabian Müller -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php