Many thanks for the quick response. All good suggestions.
I also noticed that in PHP there is a mysql_fetch_field function which
returns a collection of properties about a given field, including it's name
and whether it is a primary key, so with a little rejigging of my code, I'll
use this.
I want
Hi all,
I've searched all over the place for a solution to this, and I hope you can
help. I'm trying to write a very simple database handling script. The SQL
statement I'm trying to do is SELECT * FROM tablename WHERE the_first_column
= a_number;
All my tables have the primary key in the first colu