View Single Post
Old 02-15-2008   #1 (permalink)
thatpyrokid
Registered User
 
Join Date: Jan 2008
Posts: 7

PHP comment system problem...

Okay, on my website right now, I have a commenting system set up. You can submit comments, view them etc. Whatever. The thing is, I also want to add a reply function. Right now, this is my code:

PHP Code:
while($row mysql_fetch_array($resultMYSQL_ASSOC)) {

$comment $row['comment'];
$wrapcomment wordwrap($comment45"<br>"true);

echo 
"{$row['username']} said:
<form method=\"post\" action=\"http://thatpyrokidben.nickthebic.com/testcomment.php?replying=true\">
<input type=\"hidden\" name=\"commentoberepliedto\" value=\"$wrapcomment\">
<a href=\"http://thatpyrokidben.nickthebic.com/testcomment.php\">reply</a></form>
      $wrapcomment<br><br><br>"
;

It displays something like this:

"user said:
reply
This is quite the long comment because it can
be."

That reply needs to be on the same line as the "user said:"
Any help would be appreciated. And if you see something else wrong with that, tell me, I'm pretty new to form and post.
thatpyrokid is offline   Reply With Quote