Simplest way around this?
#8

Use mysql_insert_id() to get the most recently inserted auto increment id after inserting the row.

pawn Code:
new g_vehSQLids[MAX_VEHICLES];

mysql_query(...);

g_vehSQLids[vehicleid] = mysql_insert_id();
Your original post has very awkward wording.
Reply


Messages In This Thread
Simplest way around this? - by zDevon - 02.01.2013, 03:29
Re: Simplest way around this? - by ReneG - 02.01.2013, 06:37
Re: Simplest way around this? - by zDevon - 02.01.2013, 10:31
Re: Simplest way around this? - by Threshold - 02.01.2013, 10:34
Re: Simplest way around this? - by shitbird - 02.01.2013, 10:40
Re: Simplest way around this? - by zDevon - 02.01.2013, 13:42
Re: Simplest way around this? - by zDevon - 02.01.2013, 21:42
Re: Simplest way around this? - by ReneG - 03.01.2013, 00:17
Re: Simplest way around this? - by zDevon - 03.01.2013, 01:11
Re: Simplest way around this? - by ReneG - 03.01.2013, 05:23

Forum Jump:


Users browsing this thread: 1 Guest(s)