Jump to content
  • 0

Check query mysql


ByLost

Question

Hello, 

How do I check if the query gave an error?
Example: if the error query, I would like the quest to give me a warning. say etc.

Thanks

Link to comment
  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

4 answers to this question

Recommended Posts

  • 0
1 minute ago, Sonitex said:

Error will be displayed in your server error logs.

yes yes, 
If you do any quest with direct query, to insert, for example coins.

So if I can verify the query, if for some reason it fails, I will not let the quest complete.

Link to comment
  • 0
Posted (edited)
53 minutes ago, Sonitex said:

By default your query function should return a value based on its result, should be a NULL value in case of failure.

wtf? if null ? example?

 

if null !=

Thanks man :D

Edited by ByLost
Link to comment

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


×
×
  • Create New...

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.