Re: [PHP] Finding last entry in MySQL database

2002-11-15 Thread Justin French
on 15/11/02 8:11 PM, Tim Thorburn ([EMAIL PROTECTED]) wrote: > I'm creating a form which will allow individuals to add themselves to an > online database and ask if they'd like to upload a picture. I have the > form setup which allows the individuals to add themselves - currently it > asks if the

Re: [PHP] Finding last entry in MySQL database

2002-11-15 Thread Marek Kilimajer
better would be to keep it in a session variable, so people don't spoof it. M.A.Bond wrote: Tim, This is a dangerous way of doing things, if you get a couple of people registering at the same time the system has the possibility of getting the wrong entry, you best bet is to have the upload scri

Re: [PHP] Finding last entry in MySQL database

2002-11-15 Thread M.A.Bond
Tim, This is a dangerous way of doing things, if you get a couple of people registering at the same time the system has the possibility of getting the wrong entry, you best bet is to have the upload script return the last insertid(I'm assuming your database has an autoincrement/id field) and pass

Re: [PHP] Finding last entry in MySQL database

2002-11-15 Thread Ernest E Vogelsinger
At 11:11 15.11.2002, Tim Thorburn said: [snip] >I'm creating a form which will allow individuals to add themselves to an >online database and ask if they'd like to upload a picture. I have the >form setup which allows the individuals to add themselves - cu