rocknbil - 4:57 pm on Jun 14, 2011 (gmt 0)
Yeah but make sure you get via last insert id immediately after doing the insert . . . I always use a new select with the unique data I just inserted to make sure it's the relevant record.
Select id from table where email@example.com' and user_id=12345;
It's always a **very good idea** to use a second field for user_id or other unique id rather than the auto increment field.