When loggin as a Just-Joined user and i visit the page where this code lives it hangs, all other users are ok. $PackageName = Q("select gName as result from frm_groups where groupid =".$_SESSION['groupid'],$connector); if($PackageName =="Just-joined") { header('Location:browse.php'); exit(); } else { header('Location:Not_paid.php'); exit(); }
are you getting any error ? and please provide detail code of Q() function in which you are passing a query and connection .. seems like there is some problem other stuff looks fine
You probably have an error in the SQL query Try this : ("select gName as result from frm_groups where groupid ='".$_SESSION['groupid']."'",$connector); Code (markup):