You are here: Re: Dynamic search with checkboxes « PHP Programming Language « IT news, forums, messages
Re: Dynamic search with checkboxes

Posted by NurAzije on 10/16/06 13:16

GustavoBrust wrote:
> Hello everyone.
>
> I'm having a problem with a search I want to make.
>
> It's like this:
>
> The user can choose about 15 checkboxes to be his search pattern.
> According to the combination of checkboxes checked, I must do a
> different query.
>
> Is it really necessary to make 15 if...else statements and type in a
> query for every combination the user may choose?
>
> If anyone knows any easier way to do it, please help me.
>
> Thanks.
>
> Gustavo.
You can post the checkboxes as one array from html, then in use foreach
with one if statement in it.
If you provide us the code it will be easier to determine ...
--------------------------------------------------------------------------
For php/ajax/javascript tutorials and tips, visit me on my blog at
http://www.nurazije.co.nr

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация