|
สติ๊กเกอร์มาใหม่ประจำวันนี้!
|
=0 and $to>$from) {
$limit=" limit $from, $to ";
}
// print the list if there is not editing
$db = mysql_connect("mail.diaryhub.com", "siam2", "kukkai");
mysql_select_db("siam2db",$db);
$sql="SELECT * FROM newage $where $order $limit";
$result = mysql_query($sql,$db);
//printf("\n");
//printf("\n");
while ($myrow = mysql_fetch_array($result) and $i<=$line-1) {
//$bgc = ($bgc=="#FF99FF") ? "#66CCFF" : "#FF99FF";
//printf("| %s - %s คนชม %s | \n", $myrow["Vote"],$myrow["Category"],$myrow["Account"],$myrow["Comment"],$myrow["Visitor"], $myrow["Owner"]);
printf("%s # %s - %s คนชม %s Vote %s \n", $myrow["Category"],$myrow["Account"],$myrow["Category"],$myrow["Account"],$myrow["Comment"],$myrow["Visitor"], $myrow["Vote"],$myrow["Owner"]);
$i++;
}
//printf("\n");
//printf(" \n");
?>
|