Guys, what's wrong with connecting to the database? I can't log in to the background.
perfect
perfect 2020-04-01 23:17:01
0
2
1189
<?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?

perfect
perfect

reply all(2)
凉官灰

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?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template