Where $con = mysqli_connect($serverName,$dbusername,$dbpassword);
3 steps replacement in the following order
- All “mysql_select_db(” with “mysqli_select_db($con,“
- All “mysql_query(” with “mysqli_query($con,” and
- All “mysql_” with “mysqli_“.
This works for me everytime
+https://stackoverflow.com/questions/1390607/how-to-change-mysql-to-mysqli
+http://php.net/manual/en/mysqli.summary.php