MySQL question tquery
#1

Hi..

I'm using mysql_tquery to INSERT a new base into the database that I have just created. I then wish to assign the inserted values to the base Enums aswell.. but I do not know the base ID that gets auto incremented.

How should I get that ID so I know the base ID (BaseInfo[baseid][bOwner] for example). I thought maybe to use the callback with tquery and then I can do 'cache_insert_id();'?

But I am getting the player position when he types the CMD.. does it affect something if I get the player position in the query callback?
Reply


Messages In This Thread
MySQL question tquery - by Dan. - 08.07.2015, 14:29
Re: MySQL question tquery - by dusk - 08.07.2015, 14:33
Re: MySQL question tquery - by Vince - 08.07.2015, 14:35

Forum Jump:


Users browsing this thread: 1 Guest(s)