Chapter 8 Dynamic searching
Creating a search. <ul><li>In this chapter you are going to create sql statements that search for information. </li></ul><...
tours.php
tours_details.php
index.php
Preparing the search page. <ul><li>Make the changes to the tours.php page as shown on the next page. </li></ul>
tours.php page 1.Change text 2. Insert table A recordset shown on next page. A form with the following details Link to tou...
Creating the recordsets -1.
Creating the recordsets -2.
Dynamic list
Creating the repeating section
Region Link The filtering on the link would work until we change the query on the tour_details.php page which is done later.
Now fix the index.php A recordset and a repeat region. This is the same as the world region recordset in the tours.php pag...
tours_details.php page Link to toursprice.php shown on the next page Recordset shown on the following slides Insert a tabl...
Tour price calculator link
Tour details recordset
Image details
Adding a recordset navigation <ul><li>Add a recordset navigation to the bottom of the tours_details.php page as shown. </l...
Looking at the code Add this code to tours_details.php When you select view all countries from the tours.php page this is ...
Adding an if in case there are no records Add these lines
Lab 8  Overview <ul><li>In this lab you will: </li></ul><ul><ul><li>Create a search interface by creating a form and allow...
You will create this page Searchreservations.php
Receiving data from searchreservations.php bookedtours,.php
Upcoming SlideShare
Loading in …5
×

Dynamic Web Pages Ch 8 V1.0

759 views

Published on

Published in: Technology, Design
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
759
On SlideShare
0
From Embeds
0
Number of Embeds
8
Actions
Shares
0
Downloads
42
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • 31/08/09 Database php version 2.1
  • Dynamic Web Pages Ch 8 V1.0

    1. 1. Chapter 8 Dynamic searching
    2. 2. Creating a search. <ul><li>In this chapter you are going to create sql statements that search for information. </li></ul><ul><li>The next slides show the changes to the tours.php page, tours_details.php page and index.php page </li></ul>
    3. 3. tours.php
    4. 4. tours_details.php
    5. 5. index.php
    6. 6. Preparing the search page. <ul><li>Make the changes to the tours.php page as shown on the next page. </li></ul>
    7. 7. tours.php page 1.Change text 2. Insert table A recordset shown on next page. A form with the following details Link to tourprice.php Recordset for the dynamic list values.
    8. 8. Creating the recordsets -1.
    9. 9. Creating the recordsets -2.
    10. 10. Dynamic list
    11. 11. Creating the repeating section
    12. 12. Region Link The filtering on the link would work until we change the query on the tour_details.php page which is done later.
    13. 13. Now fix the index.php A recordset and a repeat region. This is the same as the world region recordset in the tours.php page. Profiles.php link Contact.php link.
    14. 14. tours_details.php page Link to toursprice.php shown on the next page Recordset shown on the following slides Insert a table Image shown on the following pages h2 h1
    15. 15. Tour price calculator link
    16. 16. Tour details recordset
    17. 17. Image details
    18. 18. Adding a recordset navigation <ul><li>Add a recordset navigation to the bottom of the tours_details.php page as shown. </li></ul><ul><li>Add the find Tours link to tours.php page </li></ul>
    19. 19. Looking at the code Add this code to tours_details.php When you select view all countries from the tours.php page this is the recordset you what to use. When you click on the region link this is the recordset to use If you select a country from the tours.php page then this is the recordset to use.
    20. 20. Adding an if in case there are no records Add these lines
    21. 21. Lab 8 Overview <ul><li>In this lab you will: </li></ul><ul><ul><li>Create a search interface by creating a form and allowing the user to select a value from a list/menu object and returning the tours that match the selected value. </li></ul></ul><ul><li>Objectives: </li></ul><ul><ul><li>Group data in a select statement </li></ul></ul><ul><ul><li>Create a search page from a form </li></ul></ul><ul><ul><li>Implement a search results page using the value the user selected on the form. </li></ul></ul><ul><ul><li>Add conditional logic to the SQL statement. </li></ul></ul>
    22. 22. You will create this page Searchreservations.php
    23. 23. Receiving data from searchreservations.php bookedtours,.php

    ×