A quick question:
I have a database that I am accessing to assign a call number to a call (for, say, a support help desk). I have a MySQL db and a table set up there called "tickets". The "ticket_no" field in that table is set up as an int, and auto_increment. What I want to do in my app is to assign a ticket_no based on the last ticket_no plus one.
From what I can see, I should be able to use "select last_insert_id()" to do this, but when I test it, the db gets updated, but the value returned says "Resource #2". ??
Any pointers or better suggestions?
Thanks--
Jim