23.11.2012, 06:43
How did this code even compile?
You're calling mysql_free_result before storing it, and mysql_fetch_field is used to fetch fields by index, not name.
You're calling mysql_free_result before storing it, and mysql_fetch_field is used to fetch fields by index, not name.