0% found this document useful (0 votes)
138 views3 pages

DT 301 PHP N Mysql Basic

This 4-day course teaches the basics of PHP and MySQL. It is aimed at participants with experience in HTML, programming languages, and relational database management systems. The course covers introductory topics like PHP syntax and functions. It also teaches how to connect PHP to MySQL to create dynamic web content by retrieving, adding, updating, and deleting database records. Participants will complete a lab project building a simple web application that interacts with a database.

Uploaded by

ridwan setiawan
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
138 views3 pages

DT 301 PHP N Mysql Basic

This 4-day course teaches the basics of PHP and MySQL. It is aimed at participants with experience in HTML, programming languages, and relational database management systems. The course covers introductory topics like PHP syntax and functions. It also teaches how to connect PHP to MySQL to create dynamic web content by retrieving, adding, updating, and deleting database records. Participants will complete a lab project building a simple web application that interacts with a database.

Uploaded by

ridwan setiawan
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Course Outline for PHP & MySQL

PHP301: Basic
Duration: 4 days

WHO SHOULD ATTEND:
The course is aim for participants who already know at least the basic of HTML and has
done some programming in modern programming language before.

PREREQUISITES:
Web development experienced with either ASP/DSP and understanding of RDBMS and
fair   knowledge  of  SQL commands.    The  participants  should  also  be  conversant  with
HTML and general programming logic.

MODULES:

1. Introduction to HTML Scripting


• Basic HTML Document Tags
• Text Structure and Formatting
• Including Images
• Linking multiple HTML pages
• Creating Forms
• Working with tables

2. Introduction to PHP
• PHP's purpose and capabilities
• Server Side vs. Client Side Scripting
• How PHP looks like – Basic Construct
• Testing PHP installations in your server

3. Language Basics
• Lexical Structure and Syntax
• Data Types in PHP
• Using Variables and Constants
• Understanding Arrays
• Working with combinations of Data Types, Variables and Arrays
• Processing data using operators

4. Creating Dynamic Web Content


• Embedding PHP in Webpages
• Retrieving user input through forms
• Retrieving user input using the GET method
• Getting the date and time
• Dynamically including code using include and require
5. Giving your code life – Control Structures
• Conditional decision making – if, else, and elseif
• True, false, and evaluation of expressions
• Multiple and nested conditions
• Short Circuit Evaluation – break and continue
• The ? Operator
• Decision making using the switch statement
• Iterations using while loops
• Iterations using do...while loops
• Iterations using for loops
• Iterations using for each loops
• Terminating code using exit (), return, and die ()

6. Using PHP's built-in functions


• Mathematical functions
• Working with Strings
• Generating random numbers
• Learning more about built-in functions

7. Creating custom functions


• Why write your own functions
• Syntax for defining a function
• Variable scope, and the global statement
• Adding in function parameters
• Return values from functions

8. Introduction to Database
• What is a database
• Why use a database – The three-tier architecture approach
• Introducing MySQL and PHPMyAdmin
• Understanding the database structure
• Creating a simple database
• Basic SQL commands

9. Making PHP and MySQL work for each other


• Connecting to the database
• Displaying database content through PHP
• Adding data into the Database
• Deleting from the Database
• Updating and modifying data in the Database

10. Putting it all into practice – Lab project


• Step-by-step creation of a simple web application that allows user to view data in a
formatted page, and interactively add, edit, and delete the database content

The Malaysian Public Sector
Open Source Competency Centre (OSCC)
MAMPU
http://opensource.mampu.gov.my

You might also like