Jump to content

MySQL problem


pa3ck

Recommended Posts

Posted
connection = dbConnect( "mysql", exports.global:getSQLData() ) 
  
-- getSQLData in global: 
  
function getSQLData() 
    return "dbname=mtasrv;host=127.0.0.1", "mtasrv", " -- ", "share=0" 
end 
  

And this code is on the same lua file as your other script?

Posted

I changed it to dbExec it works now, but what is the difference between dbExec and dbQuery? Will I need to use dbExec for updating / inserting / getting deatils to / from a table? Thanks a mill.

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