help with problem script

Discussion in 'PHP' started by magic!, Apr 11, 2008.

  1. #1
    Hi, I have been fighting with this script all days and it hates me... PLESE help
     

    Attached Files:

    magic!, Apr 11, 2008 IP
  2. Agent_Smith

    Agent_Smith Well-Known Member

    Messages:
    890
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    145
    #2
    Which line, whats the error message? May be helpful.
     
    Agent_Smith, Apr 12, 2008 IP
  3. DartPHP

    DartPHP Banned

    Messages:
    71
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You have a bunch of bad-syntax IF statements and an else statement at the bottom which has nothing to go with.
     
    DartPHP, Apr 12, 2008 IP
  4. magic!

    magic! Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Here is the error: Parse error: syntax error, unexpected '{' in train.php on line 38

    Everything worked till I flubbed all of it up... and i forgot to take a backup before breaking everything...

    Sorry, I forgot the most important part the error message.
     
    magic!, Apr 12, 2008 IP
  5. eTechDude.com

    eTechDude.com Member

    Messages:
    205
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #5
    Ok heres what i found (Not so sure since im pretty much a begineer myself).
    LINE 38:
    OLD:
    if (db_num_rows($result) > 0 && $session['user']['level'] <= (getsetting("ammountofmasters")){

    NEW:
    if (db_num_rows($result) > 0 && $session['user']['level'] <= (getsetting("ammountofmasters"))){

    Line 55 add a close brace ( } )

    Line 192: missing close brace??
    OLD:
    if ($session['user']['level']<=(getsetting("ammountofmasters")){
    NEW:
    if ($session['user']['level']<=(getsetting("ammountofmasters"))){

    LINE 264:
    Remove close brace before "ELSE {"
     
    eTechDude.com, Apr 12, 2008 IP