Reading responses and the fact that you still have errors, I come to think the posibility of having "M" instead of "m" in sex
field.
You can try:
$sql = mysql_query("SELECT * FROM `users`
WHERE UPPER(`sex`) = 'M'
AND `age` > 18
AND `online_stas` = 'online'")
or die(mysql_error());
I removed the round check based on your statement that you want all male users online being older than 18, but can be added again.
Other posible fail can be the comparison of age
with string value 18 instead of numeric value 18, so I changed that too (despite it may work and be converted automatically, but better to check with same types if something changes in a future).
Try it and tell if it worked.