php and mysql syllabus
php and mysql syllabus
Learning Objectives:
To enable students to understand open-source tools to create dynamic web pages, implement user
interactivity, and gain proficiency in developing web sites
Learning Outcomes: On successful completion of the course, students will be able to
1. Write simple programs in PHP.
2. Understand how to use regular expressions, handle exceptions, and validate data using PHP.
3. Apply In-Built functions and Create User defined functions in PHP programming.
5. Know how to use PHP with a MySQL database and can write database driven web pages.
UNIT-I
The building blocks of PHP: Variables, Data Types, Operators and Expressions, Constants. Flow
Control Functions in PHP: Switching Flow, Loops, Code Blocks and Browser Output. Working with
Functions: Creating functions, Calling functions, Returning the values from User- Defined Functions,
Variable Scope, Saving state between Function calls with the static statement, arguments of functions
UNIT-II
Working with Arrays: Creating Arrays, Some Array-Related Functions.
Working with Objects: Creating Objects, Accessing Object Instances, Working with Strings, Dates
and Time: Formatting strings with PHP, Manipulating Strings with PHP, Using Date and Time
Functions in PHP.
UNIT-III
Working with Forms: Creating Forms, Accessing Form Input with User defined Arrays,
Combining HTML and PHP code on a single Page, Using Hidden Fields to save state, Redirecting the
user, Sending Mail on Form Submission, and Working with File Uploads, Managing files on server,
Exception handling.
UNIT-IV
Working with Cookies and User Sessions: Introducing Cookies, setting a Cookie with PHP, Session
Function Overview, starting a Session, working with session variables, passing session IDs in the Query
String, Destroying Sessions and Unsetting Variables, Using Sessions in an Environment with Registered
Users.
UNIT-V
Interacting with MySQL using PHP: MySQL Versus MySQLi Functions, connecting to MySQL with
PHP, Working with MySQL Data. Planning and Creating Database Tables, Creating Menu, Creating
Record Addition Mechanism, Viewing Records, Creating the Record Deletion Mechanism.
Text Book(s)
1. Julie C. Meloni, SAMS Teach yourself PHP MySQL and Apache, Pearson Education (2007).
2. Steven Holzner , PHP: The Complete Reference, McGraw-Hill