Your SlideShare is downloading. ×
Dynamic Web Pages Ch 6 V1.0
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Dynamic Web Pages Ch 6 V1.0

509
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
509
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
30
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Chapter 6 Filtering & Displaying Data
  • 2. Overview
    • In this chapter you will:
      • Transfer dynamic data through the URL.
      • Add repeating regions.
      • Creating recordsets with information from the URL.
      • Adding images dynamically.
  • 3. Changing profiles.php
    • The profiles page displays the countries statically.
    • We are going to change this to dynamically from the database.
    Profiles current page
  • 4. Profiles_details.php
    • Create a profiles_details.php page from the generic template.
  • 5. profiles.php - 1
    • Delete the countries so the profiles.php page is as shown.
  • 6. profiles.php - 2
    • Create a recordset as shown.
  • 7. profiles.php - 3
    • Insert a country name field binding, as shown.
    • With this insertion highlighted click on the browse icon for a link.
    • Filling the browse as shown.
    • Select the parameters button.
  • 8. profiles.php – 4
    • In the parameters dialog box, click under the name column heading and type the names as shown.
    • Click on the lighting bolt and select as shown for both values.
    • This parameters button writes the url code in the link.
    • Here we are passing the country ID and name in the URL.
  • 9. profiles.php – 5
    • Notice now the binding is a link.
    • Notice the link sends the id of the country in the URL.
    • With the link highlighted
      • In the server behaviours
      • Panel click + and choose
      • Repeat Region, as shown.
  • 10. profiles.php – 6
    • Adding a repeat region and click on OK.
    • A section page of the page is shown. Check that the break is inside the repeat region
  • 11. profiles.php – 5
    • View the page. It should look like
  • 12. profiles_details.php
    • Open the profiles_details.php
    • Create a recordset and complete the page to look like below.
    • The following slide have the details on how complete it.
    Heading 1 Heading 2 process_details.php
  • 13. Create the recordest Click the advanced.. button.
  • 14. Combining two tables
    • Add the other table; region.
    • Add the where clause to join the tables.
  • 15. Add Bindings & View
    • Add the bindings as shown on the pervious slides.
    • The finished page should look like:
  • 16. Inspecting the pervious sql
    • Take a look at the Sql
    • What does it mean
  • 17. Dynamic images -1
    • Now we are going to add the image that go with the country.
    • Place the cursor as shown.
    • From the menu select insert->image.
  • 18. Dynamic images -2
    • Select as shown and click OK.
    • Create the imageright css rule and apply it to the image.
  • 19. Dynamic images -4
    • Completed page.
  • 20. Lab 6 -1
    • Dynamically creating a repeated region for the tour packages and their dates.
    • Then the tour ID is sent in the URL to open the tourpackages.php page.
    • The tourpackage.php page uses the tour ID to display the info about the selected tour package.
    • The following slides show the changes of the two pages.
  • 21. Lab 6 -2
    • What the page look like now.
    tours.php
  • 22. Lab 6 -3
    • What the page will look like at the end
    tours.php
  • 23. Lab 6 -4
    • Current page
    tourpackages.php
  • 24. Lab 6 -5
    • What the page will look like at the end
    tourpackages.php