View Full Version : Limit $photopostcats on forum...
November 14th, 2005, 12:03 PM
I only wish to show a few of the catagories using $photopostcats. I read on another post that you could add this "AND cat != 503" at the end of the query in inc_photopost.php. Question is... I'm not exactly sure where to put it. If someone could give an example of the code to use I'd sure appreciate it.
November 14th, 2005, 03:21 PM
well a AND statement in a mysql query would go somewhere after the WHERE statement and somewhere before the ORDER BY statement
SELECT something FROM photos WHERE approved=1 AND cat != 513 ORDER BY views
November 14th, 2005, 09:41 PM
Guess editing mysql queries is just slightly over my head. :0
Looked for the where statement but no matter what I edit nothing seems to change. Thanks anyway Chuck. I'll try the unsupported mods section, might have some luck there.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.