A-Z Menu
else if ($condition == 'not') { $generatesearch .= '('; $generatesearch .= "$searchfields[$count] != '$search'"; $generatesearch .= ')'; if ($count < ($num-1)) { if ($action == 'filter') $generatesearch .= " AND "; else $generatesearch .= " OR "; } }
else if ($condition == 'not') { $generatesearch .= '('; $generatesearch .= "$searchfields[$count] != '$search'"; $generatesearch .= ')'; if ($count < ($num-1)) { if ($action == 'filter') $generatesearch .= " AND "; else $generatesearch .= " OR "; } } else if ($condition == 'start') { $generatesearch .= '('; $generatesearch .= "$searchfields[$count] LIKE '$search%'"; $generatesearch .= ')'; if ($count < ($num-1)) { if ($action == 'filter') $generatesearch .= " AND "; else $generatesearch .= " OR "; } }
This thread is closed, so you cannot post a reply.
Comments on A-Z Menu
Member
Usergroup: Customer
Joined: Jun 30, 2003
Location: England
Total Topics: 7
Total Comments: 48
Any idea what the simple way to do a A-Z menu would be? i.e. You click A and get all cats the begin A.. I thought i could do this with search but its got me beat.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
I don't see a way to search by first letter.
Member
Usergroup: Customer
Joined: Jun 30, 2003
Location: England
Total Topics: 7
Total Comments: 48
thats what i thought... is there any other way of doing this?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
field LIKE 'A%' should do it. Now to get that into a search option... open search.php, replace with
Then use start instead of like as your condition.