美文网首页
php mysql to mysqli

php mysql to mysqli

作者: akka9 | 来源:发表于2018-08-18 01:06 被阅读0次
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

      本文链接:https://www.haomeiwen.com/subject/iwexiftx.html