suche fehlermeldung ausgeben
-
-
-
-
-
-
jetzt hab ich noch eine frage ich krige immer ein fehler
Parse error: syntax error, unexpected $end in ...index.php on line 39
Quellcode
- <div align="center">
- <a href="index.php"><img border="0" src="logo.jpg" width="100%" height="148"></a><p>
- <?php
- $file = file("db.txt");
- echo "In moment sind es " . count($file) . " Passwörter in der Datenbank. Fütter sie " . "<a href=\"input hash.php\" onclick=\"window.open('input hash.php'); return false;\">Hier</a>";
- ?>
- <p> <p> <p>
- <?php
- if ( ! isset ($_POST['save']))
- {
- echo "<form method='POST' action='" . $_SERVER['PHP_SELF'] . "'>
- Hash: <input type='text' name='md5' style='background-color:#000000;color:#00ff00' size='60' maxlength='60'><p>
- <p><input type='submit' value=' OK ' style='background-color:#000000;color:#00ff00' name='save'></p>
- </form>";
- }
- else
- {
- $search = $_POST['md5'];
- $file = file('db.txt');
- foreach($file as $f) {
- $f = explode("\t", $f);
- $arr[$f[0]] = $f[1];
- if(empty($arr[$search])) {
- echo 'Array leer.';
- }
- else
- {
- echo "<table border=0 cellspacing=6 ><tr align=center><td width=40%>hash</td><td bgcolor=red width=20%><b>pass</b></td></tr><tr align=center onMouseOver=\"style.backgroundColor='blue';style.cursor='hand'\" onMouseOut=\"style.backgroundColor='#000000';style.cursor='hand'\"><td>" . $search . "</td><td bgcolor=#FF0000>" . $arr[$search] . "</td></tr></table>";
- ?>
- <font size='5'>diese Seite ist nur zu Testzwecken da<p>
- jeder ist für sich selber verantwortlich<p></font>
- <head>
- <style type="text/css"><!-- A {text-decoration: none}--></style>
- <br><body bgcolor="#000000" text="#00ff00" Link="#00ff00" ALink="#00ff00" VLink="#00ff00"<br>
- </head>
- </div>
die zeile 39 ist aber </div> und da ist ja nix falsch
hönnt ihr mir helfen ? -
da fehlt dir eine Klammer in Zeile 29, damit das else auch geschlossen wird...
cya -
ne leider kommt der fehler immernoch
-
du musst jede schleife die du mit { beginnst auch mit } beenden.
Zähl mal nach. Es sind 3x } zu wenig. -
ahh big THX
-
Teilen
- Facebook 0
- Twitter 0
- Google Plus 0
- Reddit 0
-
Benutzer online 1
1 Besucher