誰能給我解釋一下爲什麼我得到這個錯誤:意外';'在腳本..但是當我刪除T_STRING錯誤
Parse error: syntax error, unexpected ';' in C:\wamp\www\scripts_for_profile\follow.php on line 10
當我嘗試運行此腳本:
<?php
include("/user_sytem_scripts/session.php");
include("/scripts/connect.php");
/* Gets folllowing username */
$following = trim($_GET['user']);
if(!$req_user || strlen($following) == 0 ||
!preg_match("^([0-9a-z])+$^", $following) ||
/* Gets follower username */
$query = "INSERT INTO follow (follower_username, following_username, time) VALUES ('$session->username', '$following' now())"; mysql_query($query) or die(mysql_error());
?>
我真的很困惑,誰能幫忙?因爲如果我刪除了;我得到了T_STRING錯誤。
我認爲你應該在早晨 – 2011-03-17 23:16:17
@Imran奧馬爾Bukhsh你怎麼知道這是不是早上user663049休息和代碼? – 2011-03-17 23:27:43
因爲他似乎真的很困,不能發現失蹤的')' – 2011-03-17 23:31:08