[snip]
Sure.
This is my function for posting a comment via the form I mentioned
previously:
[code]
case "post_comment":
// SQL to insert new psot into DB //
$sql = "INSERT INTO table(value1, value2, value3)
VALUES ('" . $_POST["value1"] . "',
'" . $_POST["value2"] . "',
'" . $_POST["value3"] . "')";
$result = mysql_query($sql)
or die ("inserting_values:".mysql_error());
// Grab the ID so we can refer to it later //
$id = mysql_insert_id();
// Redirect back to comments page //
echo"<script>window.location.href='index.php?mode=view&id=$id&#comments'
;</script>";
break;
[/code]
[/snip]
When you redirect you have to pull the comment from the database for it
to display. Are you doing that?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php