Skip to content

Instantly share code, notes, and snippets.

View grfxdznr's full-sized avatar

Tina grfxdznr

View GitHub Profile
<?
//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);