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'`