mysql insert id?
#1

When someone registers in my server, they get an account id. Now I use the new plugin, but I use this

Код:
mysql_store_result();
	new accountN = mysql_insert_id();
	mysql_free_result();
What would be the code for this using cache?

Thanks!
Reply
#2

Anyone?
Reply
#3

I believe there is wrapper so you shouldn't have to do anything. I should note, though, that there is no result after performing an insert query so there is no need to store nor free it.
Reply
#4

Use mysql_insert_id() in the callback from the threaded query.

P.S. Don't use cache for INSERT queries - there's nothing to store..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)