RE: How do I show column names in php?

2003-07-23 Thread Ow Mun Heng
ta_seek($l_results,0); Cheers, Mun Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -Original Message- From: Jackson Miller [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 10:56 PM To: Jake Johnson; Mysql Subject: Re: How do I show column names in php?

Re: How do I show column names in php?

2003-07-23 Thread Jackson Miller
Try: $result = mysql_query("SHOW COLUMNS FROM table_name"); while ($row = mysql_fetch_array($result)) { foreach ($row as $key=>value) { echo "$key = $value"; } } -Jackson On Wednesday 23 July 2003 9:32, Jake Johnson wrote: > I am using php and mysql and I want to show the column

Re: How do I show column names in php?

2003-07-23 Thread Yves Goergen
AIL PROTECTED]> An: "Mysql" <[EMAIL PROTECTED]> Gesendet: Mittwoch, 23. Juli 2003 16:32 Betreff: How do I show column names in php? > > I am using php and mysql and I want to show the column names. How do I go > about doing this without hardcoding the headers in m

How do I show column names in php?

2003-07-23 Thread Jake Johnson
I am using php and mysql and I want to show the column names. How do I go about doing this without hardcoding the headers in my php? Regards, Jake Johnson [EMAIL PROTECTED] __ Plutoid - http://www.plutoid.com - Shop Plutoid for