Skraund Posted July 22, 2019 Share Posted July 22, 2019 Hello, is it necessary to use in dbPrepareString() a database connection to which the request will not be sent? I just used in dbPrepareString() a connection with SQLite, and sent the request to the database MySQL and everything worked. Who exactly can say this can be done or what problems may arise in the future? Sorry for my bad english. Link to comment
Moderators IIYAMA Posted July 22, 2019 Moderators Share Posted July 22, 2019 @Skraund It shouldn't be a problem. The output is nothing but a string. I guess the only reason why you need the db connection is to determine within which language it should be escaped. MySQL and SQL are not 100% the same after all. But not 100% sure if that is the reason behind it. 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