php mysql to mysqli

mysql_select_db($db,$con); ==> mysqli_select_db($con,$db);
sed -i -e 's/mysql_fetch_array/mysqli_fetch_array/g' `find . -name '*.php'`
sed -i -e 's/mysql_query(/mysqli_query(\$con,/g' `find . -name '*.php'`
sed -i -e 's/mysql_close(/mysqli_close(\$con/g' `find . -name '*.php'`
sed -i -e 's/mysql_affected_rows(/mysqli_affected_rows(\$con,/g' `find . -name '*.php'`

你可能感兴趣的:(php mysql to mysqli)