Lisa1
10.06.2009, 12:49:20
Hallo,
über Google habe ich in diesem Forum schon die Lösung zum ersten Problem entdeckt und auch erfolgreich ausgeführt! :-)
Es geht um den WDD Webkatalog V1.5, nachfolgend der thread in dem Prob 1 behandelt wurde.
http://www.selfphp.de/forum/showthread.php?t=18332
Ich habe jetzt das Problem, dass ich das Impressum im Admin-Bereich ändern kann, aber nicht speichern. Das läuft wie folgt, ich tippe dort wo ich Daten ändern will, diese hinein, wenn ich auf "Text ändern" klicke, sind die neuen Daten wieder weg.
Hat jemand Ahnung, wie ich das ändern kann, so dass ich meine Daten im Impressum habe?
HG
Lisa
Texte.php müsste die passende Datei dazu sein.
<?php
include("include/dbconnect.php");
include("include/header.php");
$action = $_GET["action"];
if ($action == '1') { $head = "Startseitentext ändern"; }
if ($action == '2') { $head = "Impressum ändern"; }
if ($action == '3') { $head = "Nutzungsbedingungen ändern"; }
print ("
<td width=500 valign=top class='tdhead1'>
<table width=500 align=center border=0 cellpadding=0 cellspacing=0>
<tr><td class='tdhead3' height=20 align=center><b> $head</b></td></tr>
<tr><td> </td></tr>
<tr><td>
<table width=480 align=center border=0 cellpadding=0 cellspacing=0>");
$sqlt = "SELECT * FROM texte WHERE tid = '$action'";
$rest = mysql_query($sqlt);
while($row = mysql_fetch_assoc($rest)) {
$tid = $row['tid'];
$ttext = $row['ttext'];
}
print ("
<form action='texteupdate.php?action=$action' method='POST'>
<tr><td>Geben Sie für Textformatierungen normalen HTML-Code ein. Umlaute und " werden automatisch ersetzt.</td></tr>
<tr><td> </td></tr>
<tr><td>
<textarea name='inhalt' rows='20' cols='40' style='width:480px;' class='tf2'>$ttext</textarea>
</td></tr>
<tr><td> </td></tr>
<tr><td><input type='submit' value='Text ändern' class='bt1' style='width:480;'></td></tr>
</form>
");
print ("</table>
</td></tr>
<tr><td> </td></tr>
</table>
</td>
");
include("include/footer.php");
mysql_close($verbindung);
?>
über Google habe ich in diesem Forum schon die Lösung zum ersten Problem entdeckt und auch erfolgreich ausgeführt! :-)
Es geht um den WDD Webkatalog V1.5, nachfolgend der thread in dem Prob 1 behandelt wurde.
http://www.selfphp.de/forum/showthread.php?t=18332
Ich habe jetzt das Problem, dass ich das Impressum im Admin-Bereich ändern kann, aber nicht speichern. Das läuft wie folgt, ich tippe dort wo ich Daten ändern will, diese hinein, wenn ich auf "Text ändern" klicke, sind die neuen Daten wieder weg.
Hat jemand Ahnung, wie ich das ändern kann, so dass ich meine Daten im Impressum habe?
HG
Lisa
Texte.php müsste die passende Datei dazu sein.
<?php
include("include/dbconnect.php");
include("include/header.php");
$action = $_GET["action"];
if ($action == '1') { $head = "Startseitentext ändern"; }
if ($action == '2') { $head = "Impressum ändern"; }
if ($action == '3') { $head = "Nutzungsbedingungen ändern"; }
print ("
<td width=500 valign=top class='tdhead1'>
<table width=500 align=center border=0 cellpadding=0 cellspacing=0>
<tr><td class='tdhead3' height=20 align=center><b> $head</b></td></tr>
<tr><td> </td></tr>
<tr><td>
<table width=480 align=center border=0 cellpadding=0 cellspacing=0>");
$sqlt = "SELECT * FROM texte WHERE tid = '$action'";
$rest = mysql_query($sqlt);
while($row = mysql_fetch_assoc($rest)) {
$tid = $row['tid'];
$ttext = $row['ttext'];
}
print ("
<form action='texteupdate.php?action=$action' method='POST'>
<tr><td>Geben Sie für Textformatierungen normalen HTML-Code ein. Umlaute und " werden automatisch ersetzt.</td></tr>
<tr><td> </td></tr>
<tr><td>
<textarea name='inhalt' rows='20' cols='40' style='width:480px;' class='tf2'>$ttext</textarea>
</td></tr>
<tr><td> </td></tr>
<tr><td><input type='submit' value='Text ändern' class='bt1' style='width:480;'></td></tr>
</form>
");
print ("</table>
</td></tr>
<tr><td> </td></tr>
</table>
</td>
");
include("include/footer.php");
mysql_close($verbindung);
?>