tefla
Erfahrenes Mitglied
ich bekomme einen parse fehler und weiss nicht warum
fehler:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /is/htdocs/29287/www.xxx.de/php/singlesedit.php on line 12
line12:
$abfrage = "SELECT * FROM test_singles WHERE (name = $HTTP_COOKIE_VARS["benutzer"])";
wäre nett wenn mir bitte jemand helfen könnte is wichtig !!!
so hier mal noch der rest des codes (also alles):
PS: ich weiss das das form noch nich gesendet wird das is ja auch net das problem
fehler:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /is/htdocs/29287/www.xxx.de/php/singlesedit.php on line 12
line12:
$abfrage = "SELECT * FROM test_singles WHERE (name = $HTTP_COOKIE_VARS["benutzer"])";
wäre nett wenn mir bitte jemand helfen könnte is wichtig !!!
so hier mal noch der rest des codes (also alles):
PHP:
<?
if ($HTTP_COOKIE_VARS["status"] == "single" AND $HTTP_COOKIE_VARS["log"] == "1" AND $cont=="edit") {
$connID = mysql_connect ("dburl", "name", "pass");
if (!$connID) {
echo("MySQL DB is abgeschmiert !!! Sorry!\n");
exit;
}
mysql_select_db( $db, $connID );
$benutzer = $HTTP_COOKIE_VARS["benutzer"];
$abfrage = "SELECT * FROM test_singles WHERE (name = $HTTP_COOKIE_VARS["benutzer"])";
$result = mysql_query($abfrage,$connID);
$row = mysql_fetch_array($result);
echo "<form enctype=\"multipart/form-data\" method=\"POST\" action=\"$PHP_SELF?cont=edit\">
<table border=\"0\" width=\"506\" cellspacing=\"0\" bgcolor=\"#0052A3\" cellpadding=\"0\">
<tr>
<td width=\"100%\">
<table border=\"0\" width=\"100%\" bgcolor=\"#004182\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"100%\"> </td>
</tr>
</table>
<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"21%\" valign=\"top\">
<table border=\"0\" width=\"100%\" cellspacing=\"1\" cellpadding=\"0\" height=\"231\">
<tr>
<td width=\"100%\" height=\"27\"><p class=\"nav\">Name</p></td>
</tr>
<tr>
<td width=\"100%\" height=\"27\"><p class=\"nav\">Motto</p></td>
</tr>
<tr>
<td width=\"100%\" height=\"27\"><p class=\"nav\">eMail</p></td>
</tr>
<tr>
<td width=\"100%\" height=\"119\" valign=\"top\"><p class=\"nav\"> </p><p class=\"nav\">Text</p></td>
</tr>
<tr>
<td width=\"100%\" height=\"27\"><p class=\"nav\">Bild-Url <p>(100 x
140 Pixel)</p></p></td>
</tr>
</table>
</td>
<td width=\"79%\">
<table border=\"0\" width=\"100%\" cellspacing=\"1\" cellpadding=\"0\" height=\"231\">
<tr>
<td width=\"48%\" height=\"27\">$HTTP_COOKIE_VARS["benutzer"]</td>
<td width=\"16%\" height=\"27\"><p class=\"nav\">Alter</p></td>
<td width=\"36%\" height=\"27\"><input type=\"text\" value=\"$row[alter]\" name=\"alter\" size=\"3\" style=\"font-family: Verdana; font-size: 11px\"></td>
</tr>
<tr>
<td width=\"48%\" height=\"27\"><input type=\"text\" value=\"$row[motto]\" name=\"motto\" size=\"28\" style=\"font-family: Verdana; font-size: 11px\"></td>
<td width=\"16%\" height=\"27\"><p class=\"nav\">Größe</p></td>
<td width=\"36%\" height=\"27\"><input type=\"text\" value=\"$row[groesse]\" name=\"groesse\" size=\"5\" style=\"font-family: Verdana; font-size: 11px\" value=\"0,00 m\"></td>
</tr>
<tr>
<td width=\"48%\" height=\"27\"><input type=\"text\" value=\"$row[email]\" name=\"email\" size=\"28\" style=\"font-family: Verdana; font-size: 11px\"></td>
<td width=\"16%\" height=\"27\"><p class=\"nav\">Wohnort</p></td>
<td width=\"36%\" height=\"27\"><input type=\"text\" value=\"$row[aus]\" name=\"aus\" size=\"19\" style=\"font-family: Verdana; font-size: 11px\"></td>
</tr>
<tr>
<td width=\"100%\" colspan=\"3\" height=\"119\" valign=\"top\"><!--webbot
bot=\"Validation\" B-Value-Required=\"TRUE\"
I-Maximum-Length=\"449\" --><textarea rows=\"8\" name=\"text\" cols=\"61\" style=\"font-family: Verdana; font-size: 11px\">$row[text]</textarea></td>
</tr>
<tr>
<td width=\"100%\" colspan=\"3\" height=\"27\"><input type=text size=44 name=\"bildurl\" value=\"$row[bildurl]\" style=\"font-family: Verdana; font-size: 11px\">
</td>
</tr>
<tr>
<td width=\"100%\" colspan=\"3\" height=\"27\">
<input type=\"submit\" value=\"Ab geht die Post !\" name=\"B1\" style=\"font-family: Verdana; font-size: 11px\">
<input type=\"reset\" value=\"Nein, doch nicht !\" name=\"B2\" style=\"font-family: Verdana; font-size: 11px\">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>";
}
?>
PS: ich weiss das das form noch nich gesendet wird das is ja auch net das problem