As far as I know it should be
$dif = $timestamp - (60*60*24);
Not 606060.
Also, this would be the better/same thing:
$result = mysql_query("SELECT COUNT(*) AS unique_new_members FROM users WHERE signup_date > now()") or die(mysql_error());
while ($row = mysql_fetch_array($result,MYSQL_ASSOC)) {
echo $row['unique_new_members'];
}
However, it returns ALL results.
This is what I have so far:
$result = mysql_query("SELECT * FROM users") or die(mysql_error());
while ($row = mysql_fetch_array($result,MYSQL_ASSOC)) {
if ((time() - $row['signup_date']) <= 86400) {
echo count($row['signup_date']);
}
}
However, it returns 15 ones (111111111111111), one for each match. That's correct, but how do you add them together to say 15?