Quote:
Originally Posted by tubedogg
What's the error you are getting?
Two notes just off the top...you should be taking into account the TABLE_PREFIX, like shown below, and you don't need single quotes around an integer such as the joindate, so the query would look like:
$newmembers = $DB_site->query_first("SELECT COUNT(*) AS count FROM ".TABLE_PREFIX."user WHERE joindate > ".(time()-3600*24).");
|
I tried what you gave me and I still get an error:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/vhfansco/public_html/vb/modules/stats.php on line 32
What it's doing is giving me this parse error 2 lines past the line of code that I am adding for some reason.
I should also mention this is for my stats module on my vbadvanced, still I set it up like all the others.