Difference between revisions of "PHP MySQL jQuery tutorial - Cinema Seat Booking"

From Progzoo
Jump to: navigation, search
(PHP to JSON)
(Inject values from MySQL into JSON)
Line 14: Line 14:
  
 
==Inject values from MySQL into JSON==
 
==Inject values from MySQL into JSON==
 +
Take data from the MySQL database and publish it in JSON format using PHP
 
{{#ev:youtube|Ip6260drBSA}}
 
{{#ev:youtube|Ip6260drBSA}}
  

Revision as of 16:08, 21 February 2017

Based on File:Cw1-2017.docx and http://progzoo.net/cw1-2017.zip

Unzipping the files

Download the files from http://progzoo.net/cw1-2017.zip unpack them and put them on the web.

Looking at the database

Load the test data into your MySQL database.

PHP to JSON

Move from a static json file to a generated PHP data source.

Inject values from MySQL into JSON

Take data from the MySQL database and publish it in JSON format using PHP

Transforming data from MySQL into JSON

Taking out the cheats - build the rowLabels and colLabels from the database

Building the umap structure from the database

Tidying up

We started with hard coded values and we must be sure that these are all removed.

Making bookings to MySQL

Allow internet users to add bookings to the database.