All pastes #609440 Raw Edit

Comment - Fun

public php v1 · immutable
·published 2007-07-08 21:58 UTC
rendered paste body
<? 			$tbl_comments = new tbl_comments(); //create a comment object			$commentList = $tbl_comments->GetList(array(array("ref", "=", $ref)));			$count = count($commentsList);			if($count=0){					echo("<p class='descrip'>Currently there are no comments for this news article.</p>");				}			else{												foreach ($commentList as $tbl_comments){					echo ("<div class='commentbox'>");					echo ("<p><a href='mailto:". $tbl_comments->email ."'>". $tbl_comments->user ."</a> says:</p>");					echo ("<p>". $tbl_comments->comment ."</p>");						if($_SESSION['Auth_Level'] == 'admin'){							echo("<form method='POST' action='admin/delete/delComment.php'>");							echo("<input name='id' type='hidden' value='". $tbl_comments->tbl_commentsId ."'>");							echo("<button type='submit'>Delete Comment</button>");							echo("</form>");						}					echo ("</div>");				}			}		?>