I'm working on a PHP message board right now where users can have images related to them. I made a registration page with a "file" type field in it where users can select the image they want on their pc and upload it to my server where it is stored a a folder. What I wanna do, is give the image the same name as the user's unique Id, thus making it impossible to have image name conflicts. In order to do so, I must insert the new user, then select is ID, and then update the Image field (I keep a link, not the file itself in that field) for that user. That's 3 query on the database. I'm looking for a faster way to do it. Thanks