RE: [PHP] collapse SELECT from multiple tables
| From: | Jay Blanchard | Date: | Thu, 24 Mar 2005 19:46:26 +0000 |
| Subject: | RE: [PHP] collapse SELECT from multiple tables | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-211501@lists.php.net to get a copy of this message | ||
[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?