Code:
<?php session_start(); $topic = $_SESSION['topic']; $news_text = $_SESSION['news_text']; $topic_id = $_SESSION['topic_id']; $post_id = $_SESSION['post_id']; include("dbconnect.php"); include("datum.php"); echo $topic; (Testeintrag Nr. 2) echo $news_text; (Dies ist Test Nr. 2) echo $post_id; (389) $aendern3 = "UPDATE phpbb_posts_text SET post_subject = '$topic', SET post_text = '$news_text' WHERE post_id = $post_id"; $update3 = mysql_query($aendern3); $sql = "SELECT * FROM `phpbb_posts_text` WHERE post_id = $post_id"; $ergebnis = mysql_query ($sql, $connection); while ($row = @ mysql_fetch_array($ergebnis)) { echo $row["post_id"]; (389) echo $row["post_subject"]; (Testeintrag Nr. 1) echo $row["post_text"]; (Dies ist Test Nr. 1) } ?>

Eigentlich is das ne phpBB-Tabelle in der DB , deswegen hab ich das auch auf dem entsprechenden Forum gepostet. Aber ich denke mal, das es besser hierher passt. Schliesslich ist es ja doch nur eine "simple" PHP-Abfrage.
Vielleicht kann mir ja hier jemand helfen. Danke schonmal!

Kommentar