This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
//connect to your database | |
//query comments for this page of this article | |
$inf = "SELECT * FROM `comments` WHERE page = '".stripslashes($_SERVER['REQUEST_URI'])."' ORDER BY time ASC"; | |
$info = mysql_query($inf); | |
if(!$info) die(mysql_error()); | |
$info_rows = mysql_num_rows($info); |