Re: [sagentic] Categories & Records
Hi Kenny,
I'm a little confused by your if statement as you're checking if the category field of a record = "echo $record['category']", which it never will.
The best thing to do is put your category as part of your where clause in your search query:
example:
'where' => "category='YOUR VALUE'",
you just replace YOUR VALUE with the value of the category you want to search on. This way you won't need an if statement, you'll only be returning the records you want.
Hope this helps. If you're still running into a problem, please attach the .php files you're working with so I can take a closer look.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/