Derokorian, thank you for fixing my query, that really helps (and will help others, I'm sure)
bradgrafelman, thanks also.
I know the first column wont change because these tables - if they change - will only be changed by me, using RazorSQL or phpMyAdmin.
Maybe I misunderstood mysql_field_name.
I thought I could do:
$query = "SELECT * FROM tableName";
$result = mysql_query($query);
// pseudo code - something like
for each (count(mysql_field_name($result)){
// ignore the first item
// print the column header
}
I hadn't really thought about how I'd read the data - as I wrote the pseudo code I realised that I'd probably have to reset the pointer or something.
I'll read up on mysq_fetch_assoc to see how to use it in this way.
Thanks again.