Jump to content

dbExec and dbQuery


Msypon

Recommended Posts

Posted

You'll be using the dbExec and dbQuery whenever you want to do something with your database. As far as I used them, I used the dbQuery for select queries and the dbExec for updates, inserts and delete queries. :)

logo-small.png?v=3 tiny-sapdfr.png

 

If you want to contact me directly concerning Advanced-Gaming, please contact me at [email protected]

Posted

dbQuery also returns information, while dbExec just returns a boolean whether the execution was successful or not.

dbQuery returns possible selected rows, number of affected rows and last insert id (alternatively error code and error message), which are useful sometimes when executing insert statements and you want to know the auto-incremented ID.

If I helped you, please click the like button on the right ;) Thanks!

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...