Welcome Guest, Not a member yet? Register   Sign In
Getting next ID before insert
#3

[eluser]sotoz[/eluser]
You can do the insert to the database, get the last inserted id with db->insert_id and then rename your uploaded image file to your last_inserted_id.jpg

Then when you need to show this record's image you can echo its id+.jpg for the img src.

If you need code for that tell me and I can write something for you.


Messages In This Thread
Getting next ID before insert - by El Forum - 06-24-2013, 07:16 AM
Getting next ID before insert - by El Forum - 06-24-2013, 07:44 AM
Getting next ID before insert - by El Forum - 06-24-2013, 11:41 AM
Getting next ID before insert - by El Forum - 06-24-2013, 01:35 PM
Getting next ID before insert - by El Forum - 06-25-2013, 05:29 AM
Getting next ID before insert - by El Forum - 06-25-2013, 05:34 AM
Getting next ID before insert - by El Forum - 06-25-2013, 06:04 AM
Getting next ID before insert - by El Forum - 06-25-2013, 06:23 AM
Getting next ID before insert - by El Forum - 06-25-2013, 06:25 AM
Getting next ID before insert - by El Forum - 06-25-2013, 09:50 AM
Getting next ID before insert - by El Forum - 06-26-2013, 12:10 AM
Getting next ID before insert - by El Forum - 06-26-2013, 06:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB