Weiß nicht mehr weiter ??????

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Weiß nicht mehr weiter ??????

    hab mit dem script Probleme der sagt immer parse fehler in index2.php zeile 86


    <? include("inc/func_login.inc");

    $sql_con=dbconnect();
    $sql_q="SELECT * from $user WHERE $id ='$sql_i'";
    $sql_r=mysql_query($sql_q,$sql_con);
    while($sql_l= @mysql_fetch_array($sql_r)){

    $begruessung=$sql_l[name];
    $gruppe=$sql_l[gruppe];
    $sql_con=dbconnect();
    $sql_log="INSERT INTO `log` (`timestamp`,`userid`,`name`,`gruppe`,`ip`) VALUES ('$timestamp','$sql_i','$begruessung','$gruppe','$ip')";
    $sql_log=mysql_query($sql_log,$sql_con);
    ?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html><!-- InstanceBegin template="/Templates/haupt.dwt.php" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>::SDW Stop den Werbeanruf:: Partner Portal</title>
    <!-- InstanceEndEditable --><style type="text/css">
    <!--
    body {
    background-color: #0099FF;
    }
    -->
    </style>
    <link href="neu.css" rel="stylesheet" type="text/css">
    <!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
    <style type="text/css">
    <!--
    a:link {
    color: #000000;
    text-decoration: none;
    }
    a:visited {
    text-decoration: none;
    color: #000000;
    }
    a:hover {
    text-decoration: underline;
    color: #FF0000;
    }
    a:active {
    text-decoration: none;
    color: #000000;
    }
    -->
    </style></head>

    <body>
    <div align="center">
    <table width="780" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000">
    <tr>
    <td><table width="780" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
    <td colspan="2"><img src="image/pkv-callcenter-partner-port.gif" width="780" height="140"></td>
    </tr>
    <tr>
    <td width="160" valign="top" bgcolor="#FFFFFF"><div align="center">
    <table width="150" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td colspan="3"><img src="image/menu_top.jpg" width="150" height="15"></td>
    </tr>
    <tr>
    <td width="15" background="image/menu_links.jpg">&nbsp;</td>

    <td width="15" background="image/menu_rechts.jpg">&nbsp;</td>
    </tr>
    <tr>
    <td colspan="3"><img src="image/menu_unten.jpg" width="150" height="20"></td>
    </tr>
    </table>
    </div></td>

    </tr>
    <tr bgcolor="#CCCCCC">
    <td height="15" colspan="2" class="klein"> <div align="right">&gt; <? echo "<a href='agb.php?SID=$SID'>Allgemeine Gesch&auml;ftsbedingungen</a>"; ?> &gt; <? echo "<a href='impressum.php?SID=$SID'>Impressum &amp; Datenschutz</a>"; ?> </div></td>
    </tr>
    </table></td>
    </tr>
    </table>
    </div>
    </body>
    </html>

  • #2
    Rücke den ganzen Käse mal ordentlich ein und du wirst (vielleicht) feststellen, dass ein geschweifte Klammer fehlt.

    Gruß
    Uwe

    Kommentar


    • #3
      Regeln lesen befolgen und PHP Tags verwenden. Ggf Zeile 86 markieren und meine Kristallkugel vermutet, dass du deine while Schleife nicht geschlossen hast.

      Gruss

      tobi

      p.s. vor dem nächsten Post bitte
      PHP-Code:
      echo 'PHP Tags verwenden'
      Gutes Tutorial | PHP Manual | MySql Manual | PHP FAQ | Apache | Suchfunktion für eigene Seiten

      [color=red]"An error does not become truth by reason of multiplied propagation, nor does truth become error because nobody sees it."[/color]
      Mohandas Karamchand Gandhi (Mahatma Gandhi) (Source)

      Kommentar


      • #4
        Hi danke jungs sitze hier schon die ganze nacht dran

        Danke
        <? include("inc/func_login.inc");

        $sql_con=dbconnect();
        $sql_q="SELECT * from $user WHERE $id ='$sql_i'";
        $sql_r=mysql_query($sql_q,$sql_con);
        while($sql_l= @mysql_fetch_array($sql_r)){

        $begruessung=$sql_l[name];
        $gruppe=$sql_l[gruppe];
        $sql_con=dbconnect();
        $sql_log="INSERT INTO `log` (`timestamp`,`userid`,`name`,`gruppe`,`ip`) VALUES ('$timestamp','$sql_i','$begruessung','$gruppe','$ip')";
        $sql_log=mysql_query($sql_log,$sql_con);
        ?>
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
        <html><!-- InstanceBegin template="/Templates/haupt.dwt.php" codeOutsideHTMLIsLocked="false" -->
        <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        <!-- InstanceBeginEditable name="doctitle" -->
        <title>::SDW Stop den Werbeanruf:: Partner Portal</title>
        <!-- InstanceEndEditable --><style type="text/css">
        <!--
        body {
        background-color: #0099FF;
        }
        -->
        </style>
        <link href="neu.css" rel="stylesheet" type="text/css">
        <!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
        <style type="text/css">
        <!--
        a:link {
        color: #000000;
        text-decoration: none;
        }
        a:visited {
        text-decoration: none;
        color: #000000;
        }
        a:hover {
        text-decoration: underline;
        color: #FF0000;
        }
        a:active {
        text-decoration: none;
        color: #000000;
        }
        -->
        </style></head>

        <body>
        <div align="center">
        <table width="780" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000">
        <tr>
        <td><table width="780" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
        <td colspan="2"><img src="image/pkv-callcenter-partner-port.gif" width="780" height="140"></td>
        </tr>
        <tr>
        <td width="160" valign="top" bgcolor="#FFFFFF"><div align="center">
        <table width="150" border="0" cellspacing="0" cellpadding="0">
        <tr>
        <td colspan="3"><img src="image/menu_top.jpg" width="150" height="15"></td>
        </tr>
        <tr>
        <td width="15" background="image/menu_links.jpg">&nbsp;</td>

        <td width="15" background="image/menu_rechts.jpg">&nbsp;</td>
        </tr>
        <tr>
        <td colspan="3"><img src="image/menu_unten.jpg" width="150" height="20"></td>
        </tr>
        </table>
        </div></td>

        </tr>
        <tr bgcolor="#CCCCCC">
        <td height="15" colspan="2" class="klein"> <div align="right">&gt; <? echo "<a href='agb.php?SID=$SID'>Allgemeine Gesch&auml;ftsbedingungen</a>"; ?> &gt; <? echo "<a href='impressum.php?SID=$SID'>Impressum &amp; Datenschutz</a>"; ?> </div></td>
        </tr>
        </table></td>
        </tr>
        </table>
        </div>
        </body>
        </html>
        [PHP]

        Kommentar


        • #5
          Die PHP Tags hast du aber immer noch nicht korrekt verwendet *seufz*
          Gutes Tutorial | PHP Manual | MySql Manual | PHP FAQ | Apache | Suchfunktion für eigene Seiten

          [color=red]"An error does not become truth by reason of multiplied propagation, nor does truth become error because nobody sees it."[/color]
          Mohandas Karamchand Gandhi (Mahatma Gandhi) (Source)

          Kommentar

          Lädt...
          X