in reply to Re^2: How to find the highest number in a mysql table
in thread How to find the highest number in a mysql table
You could insert the row with a "not yet published" flag, and only create the file after the insert. Or have a separate table with just the auto-increment field and allocate ids whenever you want to use for the filenames and insertion into the main table.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: How to find the highest number in a mysql table
by sulfericacid (Deacon) on May 10, 2008 at 02:42 UTC | |
Re^4: How to find the highest number in a mysql table
by pc88mxer (Vicar) on May 10, 2008 at 06:24 UTC |