Login Page Usinhg PHP

Discussion in 'PHP' started by mandarj123, Mar 31, 2009.

  1. mandarj123

    mandarj123 Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #21
    above code works if ui put echo instead of header location wht is a problem
     
    mandarj123, Apr 2, 2009 IP
  2. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #22
    Well... just a thought - are you sure you've got a file called "Logged.php" ? and not "logged.php"? PHP is often case sensitive.

    Try changing the header-content to the following:

    header("location: http://www.yoursite.com/logged.php");

    and see if that works. Change the "yoursite" to your actual site-name, of course.
     
    PoPSiCLe, Apr 2, 2009 IP
  3. mandarj123

    mandarj123 Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #23
    what is wrong in this querry

    $querry="SELECT * from UserData where UserName=$logUser and Password=$logPassword" ;
    echo $querry;
    $result=mssql_query($querry,$msconn);
    it is giving error invalid column name $loguser and invalid column name $logpassword
     
    mandarj123, Apr 3, 2009 IP
  4. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #24
    Try:

    $querry = ("SELECT * FROM UserData WHERE UserName='$logUser' && Password='$logPassword'");
     
    PoPSiCLe, Apr 3, 2009 IP
  5. mandarj123

    mandarj123 Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #25
    if u refer my previous post on 1st page regarding page redirection

    im still nt able to do tht
    using
    header[location:mypage]

    i hv tried ob_start and ob_flush in vain please suggest sumthing
     
    mandarj123, Apr 3, 2009 IP
  6. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #26
    No, I was referring to you latest question about what was wrong with the query.

    If the ob_start and ob_flush doesn't work, there is something weird with the server - it should work just fine.
     
    PoPSiCLe, Apr 3, 2009 IP