Any ideas why this hangs my web page? Please

Discussion in 'PHP' started by wilburforce, Feb 20, 2007.

  1. #1
    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();
    }
     
    wilburforce, Feb 20, 2007 IP
  2. rays

    rays Active Member

    Messages:
    563
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #2
    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
     
    rays, Feb 21, 2007 IP
  3. maiahost

    maiahost Guest

    Messages:
    664
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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):
     
    maiahost, Feb 21, 2007 IP