Hi;
I'm getting really fancy now. I'm trying to build some tables that are better "normalised" than I usually try for (less redundant data being stored).
To do so, I need to have an INSERT query return the auto_increment value of the primary key. (So I can relate multiple records to be stored in another table to the item in this first table).
The MySQL docs describe a function ( mysql_insert_id() ) that apparently does such a thing, but, sadly, the description was not sufficiently concrete for me to understand and there were no examples.
I'll keep digging, but if someone could give me a quick example of code that would return the value, I'd appreciate it.
Thanks!