Not sure how to approach

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Shawn Northrop
    New Member
    • Jan 2007
    • 67

    Not sure how to approach

    I have a form on one page where a user enters info and submits. When submited the data is stored in a mysql table and given an id. The user is then taken to a new page and asked to upload an image. I need the image to have a ref # that is the same as the id from their submission.

    Basically i need to find out the id that was given to their submission.

    Thanks in advance for any help.
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    If the ID column is an AUTO_INCREMENT column, you can use the mysql_insert_id () function to retreive the ID given to the last row that was inserted.

    Comment

    Working...