我有这个if else脚本,它在1个实例上应该重定向,但不是,任何人都能看到原因吗?
if($usersClass->checkTwitterUserExists(
$_POST['twitterUser'])) {
print "<br><p>in use.</p>";
}
else {
#set_include_path("");
require 'library/Zend/Oauth/Consumer.php';
$rs = mysql_query("update `produgg_users` set `twitterUser` =
'".mysql_real_escape_string($_POST['twitterUser'])."' where
`id` = '".$usersClass->userID()."'") or die(mysql_error());
$consumer = new Zend_Oauth_Consumer($config);
// fetch a request token
$token = $consumer->getRequestToken();
// persist the token to storage
$_SESSION['TWITTER_REQUEST_TOKEN'] = serialize($token);
// redirect the user
$consumer->redirect();
}
答案 0 :(得分:-1)
if-else条件不会关闭}
(大括号)。