Re: Search logic question
| From: | Luke | Date: | Thu, 04 Dec 2003 23:48:14 +0000 |
| Subject: | Re: Search logic question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-171926@lists.php.net to get a copy of this message | ||
Chris' suggestion sounds allright.
Depending on how you do the search depends on what you will want to do (to a
certain degree)
you might be able to store the search criteria in the url
search.php?start=10&search=php%20general&subsearch1=search&subsearch2=logic
$results = "query results from {$_GET['search']}";
//then you could loop thru it
$i=1;
$subsearch == true;
while($subsearch == true){
if(isset($_GET['subsearch' . $i])){
$results = "subquery results";
}else{
$subsearch = false;
}
$i++;
}
just a concept, but it can work :)
--
Luke
"Hardik Doshi" <php_hardik@yahoo.com> wrote in message
news:20031204222039.47547.qmail@web14714.mail.yahoo.com...
> Hi Group,
>
> I need to implement the search engine for retrieving
> the image observations data from the MySQL database.
> The critical part in the search is the ability to add
> search criteria (Multipage search) from page to page.
> Anywhere during the process, user can click on the
> search button to search the results. Now my question
> is which data-structure is best to store all the
> search criteria so later on i can retrieve results
> from the DB using the selected search criteria.
>
> Is it advisable to store all the search criteria in
> the Object and then i can pass an object to other
> forms by either URL or hidden variables? any other
> suggessions?
>
> Please let me know. If you have any doubt in
> understanding the entire process please let me know so
> i can try to explain more.
>
> Thanks
>
> Hardik
>
> __________________________________
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now
> http://companion.yahoo.com/