php mysql to mysqli

2018-08-18  本文已影响0人  akka9
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'`
上一篇下一篇

猜你喜欢

热点阅读