|
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
|