我一直试图找出这个错误很长时间,但我仍然无法弄清楚我已经多次检查了代码,但我自己仍然看不到这个问题。其他人可以告诉我问题是什么吗?我只是保持不变
解析错误:语法错误,意外 $end in /home/........... 第 45 行
$dbhost = "localhost";
$dbuser = "********";
$dbpass = "*********";
$dbbase = "*************";
$cron_are_so_cool = "f722g853pqx91k470343t3i3s9v5kz12";
$db = "mysql_tut";
$con = mysql_connect($dbhost, $dbuser, $dbpass);
mysql_select_db($dbbase);
function in_event($player, $text)
{
$player = abs(intval($player));
$text = stripslashes($text);
mysql_query("INSERT INTO `member_events`
VALUES('NULL',
'".mysql_real_escape_string($player)."',
'".mysql_real_escape_string($text)."',
unix_timestamp(),
'0')") or die(mysql_error());
mysql_query("UPDATE `city_statistic`
SET `cs_value` = `cs_value` + '1'
WHERE `cs_id` = '1'") or die(mysql_error());
function id_sroom($id)
{
$storage = array(0=>0,1=>4,2=>8,3=>18,4=>30);
return $storage[$id];
}
/*----------------------------------5 minutes--------------------------*/
mysql_query("UPDATE `members` SET `my_nerve`=`my_nerve` + '1' WHERE `my_nerve` <`my_maxnerve`");
mysql_query("UPDATE `members_dogs`
SET `md_hunger` = `md_hunger` + '".rand(1,2)."'");
mysql_query("UPDATE `members_dogs`
SET `md_hunger` = '100'
WHERE `md_hunger` > '100'");
我不断收到的错误是
解析错误:语法错误,意外的 $end in /home/............ 第 45 行