Forum Moderators: coopster

Message Too Old, No Replies

Php/mysql output help

displaying retrieved data on web page

         

rodriguez1804

7:07 am on Apr 18, 2008 (gmt 0)

10+ Year Member



Hi guys!

I am fairly new to php, and after quite some time have put together a little comment system. I am having trouble getting the comments to stay on the web page that I would like the posting to take place. Every time a new post is submitted, it replaces the previous post, so I am only able to view the single most recent post.

Here's a sample of the page I want the post displayed in and what I am doing:

<html>
<head><title></title></head>

<body>
<?php include "show.php"; ">
</body>
</html>

The show.php file retrieves the data from the database and outputs it using echo $variableName;. Anybody have any suggestions as to what could be causing this? I would like each post to be followed by a space and then the next post, etc. (If you need me to post more info, just let me know) Thanks!

rodriguez1804

8:56 am on Apr 18, 2008 (gmt 0)

10+ Year Member



fixed the issue guys! I guess a break was all I needed to refocus.

coopster

10:37 am on Apr 18, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, rodriguez1804.

Sounds like you have a single comment field and you were replacing your comment on update as opposed to appending the data to any existing comments. Glad you got it sorted.