hallo,
ich bin am verzweifeln finde einfach den fehler nicht:
es geht um eine änderungsseite. die id des entsprechenden datensatzes wird per link übergeben, die einzelnen werte sollen dann in ein änderungsformular mit dem man wieder speichern kann.
im betreff genannte fehlermeldung bringt mich ans ende.
wo könnte der fehler stecken?
code:
PHP-Code:
<?php
$id = $_POST['id'];
// Zugangsdaten lesen
require("settings.inc.php");
$db = mysql_connect("$site","$user","$pass")
or die_now("<h2>Could not connect to database server</h2>
Check passwords and sockets</p>");
mysql_select_db("$database",$db)
or die_now("<h2>Could not select database $database</h2>
Check database name</p>");
// Daten abfragen
$sql = 'SELECT id , ueberschrift1 , ueberschrift2, artikel, datum, link1, link2 FROM jumtknews where id = $id ORDER BY datum DESC';
$result = mysql_query($sql,$db)
or die_now("<h2>Could not select shows</h2>");
echo " <table width=\"90%\" border=\"1\" cellspacing=\"2\" cellpadding=\"2\" align=\"center\" bordercolorlight=\"#455661\" bordercolordark=\"#455661\">\n";
while($row = mysql_fetch_array($result)) {
$the_id = $row["id"];
$the_datum = $row["datum"];
$the_ueberschrift1 = $row["ueberschrift1"];
$the_ueberschrift2 = $row["ueberschrift2"];
$the_artikel = $row["artikel"];
$the_link1 = $row["link1"];
$the_link2 = $row["link2"];
echo " <tr bgcolor=\"#000000\"> \n";
echo " <td width=\"100%\" height=\"20\"> \n";
echo " <table width=\"90%\" align=\"center\">\n";
echo " <tr> \n";
echo " <td> \n";
echo " <p class=\"Überschrift2\"><img src=\"http://ju-main-tauber.de/images/stern.gif\" width=\"16\" height=\"18\">Artikel \n";
echo " ändern</p>\n";
echo " </td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " </td>\n";
echo " </tr>\n";
echo " \n";
echo " \n";
echo "\n";
echo " <tr valign=\"top\" bgcolor=\"#455661\"> \n";
echo " <td width=\"100%\">
\n";
echo " <table width=\"90%\" border=\"1\" cellspacing=\"2\" cellpadding=\"2\" align=\"center\" bordercolorlight=\"#455661\" bordercolordark=\"#455661\">\n";
echo " <tr bordercolor=\"#526674\" valign=\"top\"> \n";
echo " <td class=\"TEXT\">
[b]<font color=\"#FF0000\">Hauptüberschrift</font>[/b] \n";
echo " <font size=\"-1\">
\n";
echo " wird auf der Startseite/im Archiv angezeigt
\n";
echo " (max 50 Zeichen)</font></p></td>\n";
echo " <td class=\"TEXT\"><input name=\"ueberschrift1\" type=\"text\" id=\"ueberschrift1\" value='$the_ueberschrift1' size=\"55\" maxlength=\"55\"> \n";
echo " </td>\n";
echo " </tr>\n";
echo " <tr bordercolor=\"#526674\" valign=\"top\"> \n";
echo " <td class=\"TEXT\">[b]Zweitüberschrift
\n";
echo " [/b]<font size=\"-1\">nur für die Detail-Anzeige </font></td>\n";
echo " <td class=\"TEXT\"><input name=\"ueberschrift2\" type=\"text\" id=\"ueberschrift2\" value=\"$the_ueberschrift2\" size=\"55\" maxlength=\"55\"></td>\n";
echo " </tr>\n";
echo " <tr bordercolor=\"#526674\" valign=\"top\"> \n";
echo " <td class=\"TEXT\">
[b]<font color=\"#FF0000\">Text</font>
\n";
echo " [/b] <font size=\"-1\">Zeilenwechsel/Absätze mit <br>
\n";
echo " Fett: <b>Dieser Text ist FETT</b></font></p></td>\n";
echo " <td class=\"TEXT\"><textarea name=\"artikel\" cols=\"70\" rows=\"20\" id=\"artikel\">" . "$the_artikel" . "</textarea></td>\n";
echo " </tr>\n";
echo " <tr bordercolor=\"#526674\" valign=\"top\">\n";
echo " <td class=\"TEXT\">[b]<font color=\"#FF0000\">Datum des Artikels</font>[/b]</td>\n";
echo " <td class=\"TEXT\"><input name=\"datum\" type=\"text\" id=\"datum\" value=\"$the_datum\" size=\"11\" maxlength=\"10\"></td>\n";
echo " </tr>\n";
echo " </tr>\n";
echo " <tr bordercolor=\"#526674\" valign=\"top\"> \n";
echo " <td class=\"TEXT\">[b]Link 1[/b]
[b]Link 2[/b]
\n";
echo " <font size=\"-1\">Verknüpfung für weitere Informationen</font></td>\n";
echo " <td class=\"TEXT\"><input name=\"link1\" type=\"text\" value=\"$the_link1\" size=\"55\" maxlength=\"55\"> \n";
echo "
<input name=\"link2\" type=\"text\" value=\"$the_link2\" size=\"55\" maxlength=\"55\"> \n";
echo " </td>\n";
echo " </tr>\n";
echo " <tr bordercolor=\"#526674\" valign=\"top\"> \n";
echo " <td class=\"TEXT\"></td>\n";
echo " <td class=\"TEXT\"></td>\n";
echo " </tr>\n";
echo " <tr bordercolor=\"#526674\" valign=\"top\"> \n";
echo " <td class=\"TEXT\"></td>\n";
echo " <td class=\"TEXT\"><input type=\"submit\" name=\"Submit\" value=\"Speichern\"></td>\n";
echo " </tr>\n";
echo " </table>\n";
echo "
\n";
echo " </td>\n";
echo " </tr>\n";
echo " \n";
...
danke