Jut putting this here…

Next time I need to upgrade one of my sites to PHP 7 – don’t panic… It’s all ok.

 

Replacements:

mysql_query(
mysqli_query($cxn,

mysql_num_rows($result);
$result->num_rows;

mysql_fetch_array
mysqli_fetch_array

mysql_error()
mysqli_error($cxn)

mysql_close
mysqli_close

mysqli_insert_id()
$cxn->insert_id