Yangi formatda davom etish uchun: https://uzfor.net/view.php?act=post&id=72549
Postga havola
AkmyradoffSoft [458] [off]
XuSha, // dogulan gün
$total = mysql_result(mysql_query("SELECT COUNT(*) FROM `users` WHERE `dayb` = '" . date('j', time()) . "' AND `monthb` = '" . date('n', time()) . "' AND `preg` = '1'"), 0);
if ($total) {
echo'<div class="zetpro"><b>Dogulan günüňiz gutly bolsun!</b></div>
<div class="menu"><img src="/images/dogulan.png" alt="Dogulan günüňiz bilen!!!" style="width: 75px; height: 53px; float: left;"/><div class="user" style="min-height: 53px; margin-left: 78px;">';
$req = mysql_query("SELECT * FROM `users` WHERE `dayb` = '" . date('j', time()) . "' AND `monthb` = '" . date('n', time()) . "' AND `preg` = '1' LIMIT $start, $kmess");
$hour=date('Y');
while ($res = mysql_fetch_assoc($req)) {
$yashy = $hour - $res['yearofbirth'];
echo ''.($i > 1 ? ', ' : '').' <a href="users/profile.php?user='.$res['id'].'">'.$res['name'].'</a>';
++$i;
}
echo'</div></div>';
}
// dogulan gün
$total = mysql_result(mysql_query("SELECT COUNT(*) FROM `users` WHERE `dayb` = '" . date('j', time()) . "' AND `monthb` = '" . date('n', time()) . "' AND `preg` = '1'"), 0);
if ($total) {
echo'<div class="zetpro"><b>Dogulan günüňiz gutly bolsun!</b></div>
<div class="menu"><img src="/images/dogulan.png" alt="Dogulan günüňiz bilen!!!" style="width: 75px; height: 53px; float: left;"/><div class="user" style="min-height: 53px; margin-left: 78px;">';
$req = mysql_query("SELECT * FROM `users` WHERE `dayb` = '" . date('j', time()) . "' AND `monthb` = '" . date('n', time()) . "' AND `preg` = '1' LIMIT $start, $kmess");
$hour=date('Y');
while ($res = mysql_fetch_assoc($req)) {
$yashy = $hour - $res['yearofbirth'];
echo ''.($i > 1 ? ', ' : '').' <a href="users/profile.php?user='.$res['id'].'">'.$res['name'].'</a>';
++$i;
}
echo'</div></div>';
}
// dogulan gün