I don't think there is a direct conversion because mysql queries from the depreciated library are built as a string then sent while mysqli uses parameters. Parameters send the variables at a later time than the query, so your queries might look like
"SELECT something FROM a_database WHERE something=? and something_else=?"
You'd send that to the database then tell it to bind those two variables before you actually execute it. This makes SQL injection literally impossible and is a lot faster. If you are just building a query like you would have before you may as well not convert.
|