Store the session of the auto incrementing PK id from the form table into the id of the image table?
I think you are confusing the “session” with the database. The two are unrelated.
But yes, one table (probably the
form table) would have an auto-incrementing PK, which the other table would use.
Add a class to the image. But within the php code that displays the images that doesn’t work.
I don’t see why it wouldn’t…? Does @chrisburton’s suggestion solve your problem?