Slimie
Erfahrenes Mitglied
hiho,
ich habe irgendwie ein kleines problem! nur leider weiß ich nich so genau welches... weil das ja eigentlich klappen müsste?! da tut sich nur leider nix also diese datei wird als iframe in meine seite geladen... hier der code:
das problem: der macht gar nix wenn ich auf shout drücke! da tut sich absolut gar nix... der läd zwar die seite neu, aber eingetragen is nix! die sachen von mysql sind auf jedenfall richtig... also das mit "id,name,datum,text" das ist auch alles in der richtigen reihenfolge, das habe ich extra ein paar mal kontrolliert...
kann mir jemand sagen woran es noch liegen könnte?
danke!!!! slimie
was ich vergessen habe: auch wenn ich anstatt des mysql_querys und dem ganzen anderen zeugs bei ....action=="shout"... ein "echo 'test';" oder sowas reinmache geht es auch nicht!!
ich habe irgendwie ein kleines problem! nur leider weiß ich nich so genau welches... weil das ja eigentlich klappen müsste?! da tut sich nur leider nix also diese datei wird als iframe in meine seite geladen... hier der code:
PHP:
<?php
include_once './admin/dbconnect.php';
include_once './functions.php';
if ($action == "shout") {
$timestamp = time();
mysql_query("insert into `shoutbox` ( `id`,`name`,`datum`,`text`) values ('','$name','$timestamp','$text')");
header("location: ./shoutbox.php");
}
$title = "shoutbox";
common_headerIframe($title);
?><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%">
<form method="post" action="./shoutbox.php?action=shout">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>name: </td>
<td><input type="text" name="name" size="18" maxlength="15" class="textarea"></td>
</tr>
<tr>
<td>text:
<td><input type="text" name="text" size="18" maxlength="150" class="textarea"></td>
</tr>
</table> <br>
<input type="submit" value=" shout! " class="button"><br>
</form>
<?php
$result = mysql_query("select * from shoutbox order by id desc limit 0,10");
while ($shoutbox = mysql_fetch_array($result)) {
$shoutbox_name = $shoutbox['name'];
$shoutbox_datum = date("d.m.y - H:m",$shoutbox['datum']);
$shoutbox_text = nl2br($shoutbox['text']);
echo ' <font color="#bd4f84"><b>' . $shoutbox_name . '</b> ' . $shoutbox_datum . '</font><br>
' . $shoutbox_text . '<br><br>';
}
?> </td>
</tr>
</table>
<?php
common_footerIframe();
?>
das problem: der macht gar nix wenn ich auf shout drücke! da tut sich absolut gar nix... der läd zwar die seite neu, aber eingetragen is nix! die sachen von mysql sind auf jedenfall richtig... also das mit "id,name,datum,text" das ist auch alles in der richtigen reihenfolge, das habe ich extra ein paar mal kontrolliert...
kann mir jemand sagen woran es noch liegen könnte?
danke!!!! slimie
was ich vergessen habe: auch wenn ich anstatt des mysql_querys und dem ganzen anderen zeugs bei ....action=="shout"... ein "echo 'test';" oder sowas reinmache geht es auch nicht!!
Zuletzt bearbeitet: