我需要帮助解决我使用 MySQL 的页面上的错误。
当我尝试访问该网站时,会弹出以下文本:
Parse error: syntax error, unexpected 'mysql_connect' (T_STRING) in C:\xampp\htdocs\mywebsite\inc\scripts\mysql_connect.inc.php on line 11
<?php
$conn_error = 'Colud not connect.';
$mysql_host = "localhost:8080";
$mysql_user = "liam";
$mysql_pass = "";
$mysql_db = 'socialnetwork'
mysql_connect($mysql_host, $mysql_user, $mysql_pass or die("Couldn't Connect") ;
mysql_select_db('mysql_db') or die($conn_error);
echo 'Connected!'
?>