Re: getting MySQL column header?

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

 



> How would one get the column name/header out of this query so that I
> could display it as the header for my columns? 

Honestly, did you read the manual after I told you last time?? 

$num_fields = mysql_num_fields($result)
for($x=0;$x<$num_fields;$x++)
{ echo mysql_field_name($result,$x); }

---John Holmes...

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux