Forum Moderators: coopster
Best is to run something like this query:
SELECT LAST_INSERT_ID() as rma_id
See the mysql manual:
[dev.mysql.com...]
[dev.mysql.com...]
I am new to php and mysql and but i am a fast learner i just need some help finding out this info and how to echo that auto incremented number back to the customer via a web page and email.
thanks,
brad
99991
99992
99993
....
999978391
999978392
et cetera?
In that case, all you need to do is create a record numbered 99990
INSERT INTO table1 (rma_id, rma_description, customer_name) VALUES ('99990', 'placeholder', 'admin');
DELETE FROM table1 WHERE rma_admin=99990
Now the first record in your table will be 99991
Is that what you're asking?
Tom