- - Code, Content, and Presentation
- -- PHP Server Side Scripting
- ---- mysql query issue
whatson - 7:54 pm on Sep 13, 2012 (gmt 0)
I went with the if statement. I just thought there would be an easier way.
The other option I considered was:
$category = 'WHERE category = $category', and add that variable in.
Thread source: http://www.webmasterworld.com/php/4494486.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com