StateCapitalFetchAllFETCH_OBJ_JSON_Encode.zip
fetches the results of a query all at once instead of record-by-record, makes objects out of the records, converts those
objects into the corresponding JSON (JavaScript Object Notation)
StateCapitalInfoFromAbbr.zip Shows a prepared, parametrized
query. Uses the GET method to allow the user to supply the parameter value (a state abbreviation). Results displayed
as JSON
Friday:
Lab: Northwind Customer datatable
In your XAMPP/MAMP use the SQL script contained in NorthwindMaster.zip
to create and populate the tables of the Northwind database. First you must create the database, the script
will not create the database. Then with that (empty) database selected, navigate to the SQL tab, paste in the
script, and click Go.
Make a PHP page that connects to the Northwind database, selects all of the Customer data, and places that
data into a table with the datatable functionality (pages, searching and sorting).