ВИЦОВЕ
"; $prodperpage = 15; settype($st, integer); if (!$st) $st = 0; $lst1 = mysql_query("SELECT COUNT(*) FROM jokes"); list($N) = mysql_fetch_row($lst1); print ""; $jok = mysql_query("SELECT id, body FROM jokes WHERE is_active = 1 LIMIT $st, 15", $dbh); while(list($id, $body) = mysql_fetch_row($jok)) { print ""; print ""; } print ""; print "
"; for ($i = 0, $j = 1; $i < $N; $i += $prodperpage, $j++) { $a1 = ""; $a2 = ""; if ($st != $i) { $a1 = "["; $a2 = "]"; } echo "$a1$j$a2  "; } print "
$body
изпрати на приятел
 
"; for ($i = 0, $j = 1; $i < $N; $i += $prodperpage, $j++) { $a1 = ""; $a2 = ""; if ($st != $i) { $a1 = "["; $a2 = "]"; } echo "$a1$j$a2  "; } print "
 
"; if($mod == 1){ $lst = mysql_query("INSERT INTO modules_hits (url, name, date) VALUES (\"$HTTP_REFERER\", \"$rubrick\", CURDATE())"); echo mysql_error (); } include "footer.inc"; ?>