 |
 |
 |
 |
 |
This is a small dynamic site to demonstrate an example of how PHP and MySQL can be integrated with Freeway. The site appears to use 4 pages but actually just uses 1, different text and inserts are added depending on the page the user navigates to. When the user selects a menu link the variable value for "p" is passed on, when the page reloads the query script picks up this value and uses it to retrieve the relative infomation for that selected page, the PHP variables are populated with this data and then printed to the Freeway page. To demonstrate this I have used one query script containing two queries to the database for each page that is loaded, one query returns the insert text in the yellow column and the second the title and text for the page, the resulting variable content is then printed to each page. This example also uses the "PHP Dynamic Page Title" action.
|
 |
 |