RE: collapse SELECT from multiple tables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux