Parse error, Logon Authorization Script, Help please

Discussion in 'PHP' started by burkem, Feb 17, 2009.

  1. #1
    Hi Guy

    Could some one please help me with the error I keep getting when I try to test this php script please!

    I created this script some time ago at uni for an assignment, I thought I got it working but maybe not?

    I want to create a simple validation script that looks up a simple flat text file for username and password. I have attached the three files these being the logon form, the validation script and the lookup text file.

    Parse error: syntax error, unexpected $end in C:\xampp\htdocs\student_logon.php on line 39

    Cheers
    Mark
     

    Attached Files:

    burkem, Feb 17, 2009 IP
  2. tihan

    tihan Active Member

    Messages:
    64
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    93
    #2
    you have to close this:

    if(preg_match("/$student_name/", $student_name)&&(preg_match("/$student_id/", $student_id)))
    { //start of IF, for preg_match function
     
    tihan, Feb 17, 2009 IP