Hmmm, if one thing fails try another...
You know at one stage it was reading three (111 = 1.1.1 right?) so just do += there if you need to prehaps?
Heres some code that should work, without doing a fetch and a count.
Take a look and let me know, I'll try to pop on from work later 🙂
(Functions may be off as I've been working from OOP so long I've forgotten more than ->fetch 😛)
$sql = "select * from members";
$sql .= " where girl='0' and user_id='".$user2."'";
$query = mysql_query($sql);
$totCount=0;
while ($rows = mysql_fetch_array($query))
{
$totCount++;
echo $rows['user_id']."<br>";
//alternate
$gird[] = $rows["user_id"];
$out .= $gird."<br>";
}
echo "( ".$totCount." ) user_id found";
echo "<br><br>.$out;
echo "COUNT TEST: ( ".count($gird)." ) user_id found";
You can only count() on an array... and it needs to be outputted after the loop of course