That's fine, but you don't need the intermediate select step. Just use
mysql_insert_id() to get the value of userid. auto_increment values are
guaranteed to be unique no matter how quickly you are inserting.
miguel
On Wed, 17 Apr 2002, Vladislav Kulchitski wrote:
> Hi, I was wondering if the w
Hi, I was wondering if the way I am inserting into multiple tables is
safe as far as when there are many simultaneous insertions at a given
time.
Basically, there are two tables, first I insert into main table where
there's username and password (and first/last name, email) and then I
get the au
2 matches
Mail list logo