Monthly Archives: May 2008

How to get a list of a tables field / column names from MySQL using PHP – getFieldNames() Function

A simple function to replicate the funcationality of the depreciated mysql_list_fields() function. It returns a simple array with a numeric index of the column / field names. $database – String – The database you want to use $connect_string – String – Your connection string $table – String – The...