Foutje in php script

Gestart doorSebastiaanh3 reacties28 weergaven

4 berichten · pagina 1 van 1

Sebastiaanh

Lid · Topicstarter

Berichten
9.953
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hallo,
Alweer een fout..
Mijn site geeft het volgende aan:

Quote:
Parse error: syntax error, unexpected } in /home/******/domains/******.nl/public_html/admin.php on line 18

En dit is het script:

[COLOR= #0000BB]<?php[/COLOR]
    [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]config.php[/COLOR][COLOR= #007700]);[/COLOR]
      [COLOR= #0000BB]$aQuery[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT
                                                      *
                                                      FROM leden
                                                      WHERE
                                                      naam = "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR]htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]inlog[/COLOR][COLOR= #007700]])).[/COLOR][COLOR= #DD0000]"
                                                      "[/COLOR][COLOR= #007700]);[/COLOR]
    [COLOR= #0000BB]$aFetch[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$aQuery[/COLOR][COLOR= #007700]);[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]inlog[/COLOR][COLOR= #007700]])) {[/COLOR]
  [URL="http://www.php.net/Echo"]Echo[/URL] [COLOR= #DD0000]<div id="container"><div id="rood">Log eerst in!<br /><a href="inloggen">Log in</a></div></div>[/COLOR][COLOR= #007700];
}[/COLOR]

[URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$aFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]status[/COLOR][COLOR= #007700]] !=[/COLOR] [COLOR= #0000BB]2[/COLOR][COLOR= #007700]) {[/COLOR]
  [URL="http://www.php.net/Echo"]Echo[/URL] [COLOR= #DD0000]<div id="container"><div id="rood">U bent geen administrator!<br /><a href="index">Index</a></div></div>[/COLOR][COLOR= #007700];
}
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
   [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]a[/COLOR][COLOR= #007700]]) {[/COLOR]
       [URL="http://www.php.net/Echo"]Echo[/URL] [COLOR= #DD0000]<div id="container">Beheer</div>[/COLOR][COLOR= #007700];
   }

}[/COLOR]


[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]</div>[/COLOR][COLOR= #007700];[/COLOR]
onder[COLOR= #007700]();[/COLOR]
?>
0
Berichten
3.314
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Haal de } op lijn 17 weg smile
Omdat er op lijn 17 al een } staat is die in 18 } niet logisch omdat er niks geopend is wat nu afgesloten zou moeten worden.
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Je bent ook een ) vergeten op lijn 19 na $_GET[a]
0
Berichten
3.314
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ohja klopt yummie
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren