我有这个php代码,文件托管在另一台服务器和数据库上
$hostname_xxx = "xxxdb.db.234141.mysqldbhosted.com";
$database_xxx = "xx11xx";
$username_xxx = "xx11xx";
$password_xxx = "xx332211xx";
$shasown = mysql_pconnect($hostname_xxx, $username_xxx, $password_xxx) or trigger_error(mysql_error(),E_USER_ERROR);
$your_ip = $_SERVER['REMOTE_ADDR'];
echo $your_ip;
$insertSQL1 = "INSERT INTO table (users_ip) VALUES ('$your_ip)";
mysql_select_db($database_xxx, $xxx);
$Result21 = mysql_query($insertSQL1, $xxx) or die(mysql_error());
我得到的错误是
警告:mysql_pconnect() [function.mysql-pconnect]:在第 8 行的 /domains/4444.com/html/55.php 中查询期间丢失与 MySQL 服务器的连接
致命错误:在第 8 行的 /domains/4444.com/html/55.php 中查询期间丢失与 MySQL 服务器的连接
谢谢让