dynamic two column table

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

 



i know how to break up db results into two tables but im having a hard problem with this:

db structure

---------------
| id | cid | title
---------------
| 1  | 2  | hardware
| 2  | 3  | software
| 3  | 3  | software
| 4  | 2  | hardware


how can i have hardware on column 1 and software on column 2 using 1 query? i thought a simple if statement on cid might do it but regardless it spreads the results on both columns.

thanx.


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.9.7/60 - Release Date: 7/28/2005

--
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