View Single Post
Old September 5th, 2005, 12:41 AM   #5 (permalink)
alzy
Registered User
 
Join Date: Dec 2004
Posts: 42
i added the above code in and i get an error.
this is how i added it:
case "most_views":
if ( !isset($cat) || empty($catquery) ) {
$group_title = "{$Globals['pp_lang']['popular']}";
$query = "SELECT id,user,userid,cat,storecat,title,bigimage,views,height,width FROM {$Globals['pp_db_prefix']}photos WHERE approved='1' AND storecat='0' ORDER BY views DESC LIMIT $grabnum" AND date > UNIX_TIMESTAMP( DATE_SUB(NOW(), INTERVAL 14 DAY) );

i get the following error:
Parse error: parse error, unexpected T_LNUMBER in ..............

thanks
alzy is offline   Reply With Quote