[snip] Your example doesn't produce the desired the results! The reason I posted to the PHP list was I thought I would have to apply some ARRAY functions to produce the output I'm looking for. Your example did nothing more than mine produced. [/snip] It produces EXACTLY what you asked for in the OP. You didn't ask "how do I make this look pretty with PHP?" In order to do that, do this... echo "<tr>"; echo "<td>".$id."</td>"; while($id){ echo "<td>".$data."</td>" } echo "</tr>"; Is that better Sparky? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php