Jump to content

[Question]: dbPrepareString. SQLite. MySQL.


Skraund

Recommended Posts

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

@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

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