I am trying to do a simple connection with XAMPP and MySQL server, but whenever I try to enter data or connect to the database, I get this error.
(我试图与XAMPP和MySQL服务器建立简单连接,但是每当我尝试输入数据或连接到数据库时,都会出现此错误。)
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\register.php:22
(致命错误:未被捕获的错误:调用C:\ xampp \ htdocs \ register.php:22中未定义的函数mysql_connect())
Stack trace: #0 {main} thrown in C:\xampp\htdocs\register.php on line 22
(堆栈跟踪:在第22行的C:\ xampp \ htdocs \ register.php中抛出#0 {main})
Example of line 22:
(第22行的示例:)
$link = mysql_connect($mysql_hostname , $mysql_username);
ask by Demeteor translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…