DLmass Posted October 28, 2013 Share Posted October 28, 2013 (edited) Code removed. Edited October 28, 2013 by Guest Link to comment
tosfera Posted October 28, 2013 Share Posted October 28, 2013 Hmm, you are using 2 different mysql types here. You are using the db* functions ( dbQuery, dbConnect, dbPoll) and the mysql_* functions ( mysql_query ). Since these are 2 different things, they wont work together. I'd say you can better choose one of them. I'd prefer mysql cause it has more options with error reporting, layout for queries etc. But it is less poof proof. If you know what I mean. The db* functions already uses the mysql_escape_string ( it's another function that escapes all the characters out of it ). but if you can secure your system in a right way, there is no need to worry. The error you are getting is because the 'connection' variable is a dbConnect. and not a mysql_connect. ( mysql_query need a mysql_connect ) Link to comment
DLmass Posted October 28, 2013 Author Share Posted October 28, 2013 (edited) Hey there, thanks for the answer! I really appreciate it I think there are two types of mysql https://wiki.multitheftauto.com/wiki/Modules/MTA-MySQL https://wiki.multitheftauto.com/wiki/Se ... _functions EDIT: I'm confused, would you like to add me on skype? Edited October 28, 2013 by Guest Link to comment
tosfera Posted October 28, 2013 Share Posted October 28, 2013 Ya, that's what I told you. You should pick one of them. You can use the dbConnect ( db* functions ) with the mysql_query ( mysql_* functions ). Link to comment
DLmass Posted October 28, 2013 Author Share Posted October 28, 2013 Add me on skype: dlmass.feelnice I guess I'm to dumb to understand Link to comment
tosfera Posted October 28, 2013 Share Posted October 28, 2013 Done, talk to me when you're there. Link to comment
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 accountSign in
Already have an account? Sign in here.
Sign In Now