Freeway, php & MySQL examples - Basic php






Basic example using Freeway with php, this example shows how you can use Freeway HTML mark-up and mark-up items to print php variable values to Freeway pages.






It is easy to add text to pages using php and markup items









These examples are not tutorials in php or MySQL, they are simply to show users some of the ways of integrating php and MySQL within Freeway.

There are various php actions available from the Softpress Site which offer another option of integration of php and MySQL with Freeway, I have not shown any example of using these php/MySQL actions as I personally prefer not to use them. I tend to use includes for any code that is more than a couple of lines long and keep as much of the php scripting off the Freeway pages as I can, I find it much quicker and easier to mantain the code this way, many changes can be made without the need of opening the Freeway site, publishing and then uploading, unless of course I wanted to alter the page layout






Example created by Mike Brackenridge for use with Freeway 4.0 or above - March 2006


The following image shows what the above page looks like in Freeway [Without logo].