Jump to content
  • Create New...
  • 0

C++ mysql query with 3 results



Dear community,


I want to execute this query with the source and then after that work with the results:

SELECT premium_state, special_stat, is_special FROM player WHERE name = '%s', GetName()

My problem now is how I should execute the query in questlua_pc.cpp and then cache the 3 variables (premium_state VARCHAR, special_stat SMALLINT, is_special BOOLEAN) in these variables: std::string stPremStat, WORD wSpecStat, bool bIsSpec


How can I do that?



Link to comment
Share on other sites

  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

1 answer 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.