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 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 the best prices on
> Rims, Car Audio, and Performance Parts.
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]