PHP Fundamental Examples
All of these use PHP code
Show Me

Example Code

Hello World

User inputs their name, and the program outputs a message using their name.

These programs are very similar.

AJAX using JSON

User inputs a product name, and the program outputs the product information, processed from a JSON object.

OOP PHP DB Web Service

User inputs a product name, and the program outputs the product information, processed from a JSON object.

PHP RESTful Web Servce

User inputs a sailboat name, and the program outputs the sailboat information, process from a JSON object.


The second program contains the first program, and a client portion.

PHP OOP Database Web Application

Contains testers to test connection to database and tables.

UI for PHP Database OOP Web App

Allows a user to view all records in the products table from the database, as well as select a single record.

AJAJ/PHP RESTful DB Web Service

Allows a user to view all records in the selected table from the database, as well as select a single record.

CRUD AJAJ-PHP-Mysql Web service

SCRUM 3: A demo that allows a user to see the records from three database tables, and edit, delete, and insert into the tables.