Файл: LinkMod/LinkSmile.php
Строк: 5
<?php
$k_post = mysql_result(mysql_query("SELECT COUNT(*) FROM `mystyle_smile` ORDER BY `id` DESC"),0);
if ($k_post==0)
{
echo "Пусто!";
}
$k_page=k_page($k_post,$user['set']);
$page=page($k_page);
$start=$user['set']*$page-$user['set'];
$q=mysql_query("SELECT * FROM `mystyle_smile` ORDER BY `id` DESC LIMIT $start, $user[set]");
$next = 0;
while($sql=mysql_fetch_array($q))
{
if ($next ++ % 2) echo '<img src="' . $sql['path'] . '" alt=""/> ' . $sql['name'] . '<br />';
else echo '<img src="' . $sql['path'] . '" alt=""/> ' . $sql['name'] . '<br />';}
if ($k_page>1)str("?Smile&",$k_page,$page);
?>