3

After a lot of responses on a number of different posts I've seen, I'm stopping using mysql and am trying to upgrade my site to use mysqli.

My question is, based on the functions of mysql that I list below (which are the ones I currently use) can I do a blanket replace on 'mysql_' for 'mysqli_' and not break functionality? I've already done some research on each of these functions and none of the mysqli versions look like they wouldn't work, but I just need to be sure before I swap them all out.

query

fetch_array

connect

select_db

error

real_escape_string

num_rows

fetch_assoc

free_result

Chris
  • 105
  • 4
  • 14

1 Answers1

1

Check out this SO question which provides answers to at least most of your functions.

For example:

Community
  • 1
  • 1
Luke Shaheen
  • 4,262
  • 12
  • 52
  • 82