Refinements to our Search Engine

Setting up the site-->
Setting up the search page-->
Setting up the results page-->
Results page continued-->
Details page and dynamic images-->
Wrapping it up-->

You now have a search engine that potential adopters can filter by breeds. There are many variations on this theme that you might like to play with, such as a keyword driven search engine. You can create a text field form object where users enter their own keywords. We can make this a usable search by calling our text field “keyword” and adding a custom SQL statement to the advanced tab of the recordset dialog box.

Another refinement you can add to your search page is block navigation. It is as simple as opening your results.php page, selecting the Applications tab of the insert panel, and choosing the Recordset Navigation object. This will create a table with links for First, Previous, Next, and last if your results page has more than the set number of records (such as 10) per page. You can also add the Recordset Statistics object to count where you are in the returned data, such as “record number 5 of 26.”

Where do we go from here?

We’ve taken care of the visitor to the Animal Rescue Center, but now we have to provide a Content Management System for the staff so that they can add, update, and delete animals from the database as their status at the center changes. Our next tutorial will take you through the steps of creating a CMS. Be sure to check out the tutorial on creating a login system so we can place the staff pages behind password protection. See you for our next installment as we find homes for animals one pet at a time.