Просмотр поста

.
dhruva

flyself actualy i have craeted another field that is called sex1, with values man, woman

which shows
woman seekin man and
man seeking women

so i need to add one more condition in which it will show users like this

require_once ("../incfiles/core.php");
require_once ("../incfiles/head.php");
echo '<div class="phdr">Whos online?</div>';
$onltime = $realtime - 5000;
$q = @mysql_query("select * from `users` where lastdate>='" . intval($onltime) . "' and sex1 ='man' and sex ='m';");
$count = mysql_num_rows($q);