|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-07-06 17:54 UTC] rasmus at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sat Jun 13 02:00:02 2026 UTC |
I would like to see a mysql function that returns the field names of a query as an array of names. If this is good I elect mysql_fetch_fields() as the function name (with the added 's' on the end). ex $result = mysql_query("select * from table"); $fields = mysql_fetch_fields($result); echo implode(",\n", $fields); /* This would print out all the field names like so field1, field2, field3, This is just a conceptual example as I see better uses for this function */