$girl = mysql_query("SELECT * FROM `users` WHERE `sex` = 'zh' ORDER BY `id` DESC LIMIT 5"); while ($res = mysql_fetch_assoc($girl)) { $ages = (int)((time() - mktime(0, 0, 0, $res['monthb'], $res['dayb'], $res['yearofbirth'])) / (60 * 60 * 24 * 365.25)); if ($ages) $age = '
  • Âîçðàñò: ' . $ages . '
  • '; echo $i % 2 ? '
    ' : '
    '; $arg = array ( 'iphide' => 1, 'body' => $age ); echo functions::display_user($res, $arg); echo '
    '; ++$i;