<?php error_reporting(0); session_start(); mysql_connect("localhost","admin","admin"); mysql_select_db("xiehuoming"); mysql_query("set character_set_server='utf8'"); mysql_query("set names 'utf8'"); ?>
How to solve this?
The mysql function is used incorrectly, and the mysql_ function has been removed in php7 and above versions.
Aren’t they all using mysqli to connect?
The mysql function is used incorrectly, and the mysql_ function has been removed in php7 and above versions.
Aren’t they all using mysqli to connect?