Jump to content
  • Create New...
  • 0

Mysql uiInsertID problem



  • Premium

Hi dev's i have some problems with mysql


    sprintf(szQuery,"insert into player.gift set item_count=%d, owner=%d",
    std::auto_ptr<SQLMsg> pkMsg(DBManager::instance().DirectQuery(szQuery));
    SQLResult * pRes = pkMsg->Get(); 
    DWORD gift_id= pRes->uiInsertID;


gift_id is alaways 0 why?

Link to comment
Share on other sites

  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

2 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.