Searching with serialized id's |
When the user types in the search PHP it should find the questions that have category id of 1
I store my category id in a column in question called "tags" it's serialized of couse because the user may have chosen multiple tags / categories. The category table name is category and columns "category_id" "name" "status" a:2:{i:0;s:1:"1";i:1;s:1:"4";} I can search for questions fine but cannot search if it is a category they are searching for. Any idea's and examples thanks for your time PHP Code: public function get_questions($search) { Controller PHP Code: <?php
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
|
Messages In This Thread |
Searching with serialized id's - by wolfgang1983 - 10-25-2016, 03:39 AM
RE: Searching with serialized id's - by Narf - 10-25-2016, 07:02 AM
RE: Searching with serialized id's - by wolfgang1983 - 10-25-2016, 01:29 PM
RE: Searching with serialized id's - by JayAdra - 10-25-2016, 05:03 PM
RE: Searching with serialized id's - by wolfgang1983 - 10-25-2016, 05:45 PM
RE: Searching with serialized id's - by d4jk4 - 10-25-2016, 08:05 PM
|