这是我的脚本:
function Secu($variable)
{
$variable = mysql_real_escape_string(htmlspecialchars(stripslashes(nl2br(trim($variable)))));
return $variable;
}
function Redi($lien)
{
echo <script type="text/javascript">document.location.href=\.$lien.='/index.php';</script> ;
function PassHash($mdp_hashed)
{
$mdp_hashed = Secu(md5($mdp_hashed));
return $mdp_hashed;
}
if (isset($_SESSION['username']))
$pseudo = Secu($_SESSION['username']);
$sql_user = mysql_query("SELECT * FROM users WHERE username = ".$pseudo." LIMIT 1") or die(mysql_error());
$row_user = mysql_num_rows($sql_user);
}
我得到这个:
错误:语法错误,意外的“<”