You are on page 1of 6

JUSTICE BASHEER AHMED SAYEED COLLEGE FOR WOMEN

(AUTONOMOUS)
BACHELOR OF COMPUTER APPLICATIONS (BCA)
SEMESTER IV
CORE THEORY- 8
COURSE NAME: Web Development with PHP & MySQL (Integrated)
COURSE CODE: RIVC8 (7) INSTRUCTIONAL HRS: 90
CREDITS: 5 TOTAL MARKS: 100

COURSE OBJECTIVES:
The main objectives of this course are to:
1. Introduce the basics of PHP and MySQL connectivity, PHP form validation, PHP form
handling.
2. Learn how to retrieve and manipulate data from one or more tables, know how to filter
data based upon multiple conditions, Updating and inserting data into existing tables.
3. Develops skills to create server-side scripts using PHP to create dynamic websites for
visitors, Review of some sample PHP projects interacting with MySQL.

UNIT 1 (18 Hours)


Introducing PHP: What is PHP? - Why use PHP? - Evolution of PHP - Your First PHP
Script: Installing PHP - Other ways to run PHP - Creating your first script - PHP
Language Basics: Using variables - Understanding Data Types - Operators and
Expressions - Constants - Decisions and Loops: Making Decisions - Doing Repetitive
Tasks with Looping - Mixing Decisions and Looping with HTML.

UNIT 2 (18 Hours)


Strings: Creating and Accessing Strings - Searching Strings - Replacing Text with Strings
- Dealing with Upper and Lowercase - Formatting Strings - Arrays: Creating Arrays -
Accessing Array Elements - Looping Through Arrays with for-each - Working with
Multidimensional Arrays - Manipulating Arrays - Functions: Calling Functions -
Working with Variable Functions - Writing your own Functions - Working with
References - Writing Recursive Functions.

UNIT 3 (18 Hours)


Objects: Creating Classes and Objects in PHP - Creating and using Properties - Working
with Method: Creating a Methods - Calling Methods - Adding Parameters and Returning
Values - Accessing Object Properties from Methods - Object Overloading with _get(),
_set() and _call(): Overloading Property Accesses with _get() and _set() - Overloading
Method Calls with _call() - Using Inheritance to Extend Power of Objects - Constructors
and Destructors, Automatically Loading Class Files.

89
UNIT 4 (18 Hours)
Handling HTML Forms with PHP: How HTML form works - Capturing Form Data
with PHP - Dealing with Multi-Value Fields - Generating Web Forms with PHP - Storing
PHP Variables in Forms - Creating File Upload Forms - Redirecting After a Form
Submission - Working with Files and Directories: Getting Information on Files -
Opening and Closing Files - Reading and Writing to Files, Copying, Renaming, and
Deleting Files - Working with Directories.

UNIT 5 (18 Hours)


Introducing Databases and SQL: Setting up MySQL - A Quick Play with MySQL -
Connecting MySQL from PHP - Retrieving Data from MySQL with PHP – Setting Up
the Book Club Database - Retrieving Data with SELECT - - Manipulating MySQL Data
with PHP – Inserting, Updating, and Deleting Records.

LIST OF PRACTICALS USING PHP & MySQL PRACTICAL HOURS: 75

1. Write a PHP Program to display the today’s date and time.


2. Write a PHP program to check if a person is eligible to vote
3. Write a program to check student grade based on the marks using if-else statements.
4. Write a program to calculate Electricity bill in PHP if-elseif conditions.
5. Write a program to show day of the week (for example: Monday) based on numbers
using switch/case statements.
6. Write a simple calculator program in PHP using switch case
7. Write a program to create Chess board in PHP using nested for loop
8. Design a simple product discount application using PHP.
9. Design a simple login form using HTML Form and process using PHP
10. Design a from which upload & Display image in PHP
11. Write a PHP code to create database & table in MySQL and insert, delete, select the
data from database
12. Write a PHP application for student registration form
13. Managing a Simple Mailing List

SELF-STUDY / EXPERIENTIAL LEARNING:


Unit3: Apply Overloading properties via the __get(), __set(), __isset() and __unset()
methods for handling objects.
Unit 4: Apply the properties of forms and files to build a online Text Editor.
Unit 5: Develop an application for Member Registration.

90
Note: The self-study component will be considered only for internal evaluation (CIA
component) and will be excluded from the end semester exam evaluation .

TEXT BOOKS:
1. Matt Doyle, “Beginning PHP 5.3”, Wiley Publishing, Copyright©2010.
2. Luke Welling, Laura Thomson, “PHP and MySQL Web Development”, Fifth Edition,
Pearson Education, 2017.

REFERENCE BOOKS:
1. Ellie Quigley, “PHP and MySQL by Example”, First Edition, Pearson Education, 2007.
2. Brett McLaughlin, “PHP & MySQL: The Missing Manual”, Second Edition, O'Reilly
Media, Inc., 2012.
3. Joel Murach, Ray Harris, “Murach’s PHP and MySQL”, Third Edition, Mike Murach &
Associates,Inc., 2017.
4. W. Jason Gilmore, “Beginning PHP and MySQL: From Novice to Professional”, Fourth
Edition, Copyright©2010 by W.Jason Gilmore
5. Andrew Curioso, Ronald Bradford, Patrick Galbraith, “Expert PHP and MySQL”,
Wiley Publishing, Copyright©2010.

ONLINE RESOURCES:
1. http://etutorials.org/Programming/PHP+MySQL+and+Apache+in+24+hours/Part+II+B
asic+Language+Elements/Hour+4.+The+Building+Blocks+of+PHP/Variables/
2. https://tutorialsclass.com/exercises/php/php-all-exercises-assignments/
3. https://www.udemy.com/course/web-development-with-php-mysql/
4. http://ts.ictacademy.in/PHP-with-MySQL.aspx
5. https://www.w3resource.com/mysql-exercises/

METHODOLOGY OF TEACHING:
1. Lecture Method
2. LCD / Smart Board / PPT
3. Real time demonstration in the Computer Lab

91
COURSE OUTCOMES:
On completion of the course, student will be able to:

Knowledge
CO Course Outcome
Level
CO1 Examine PHP & MySQL syntax and semantics and be fluent K1,K2,K3
in the use of statements to write PHP code to produce
outcomes and solve problems.
CO2 Demonstrate the proficiency in handling strings and Illustrate K2, K3
the use of functions to modularize complex programs to
simpler ones.
CO3 Read, Write and Debug PHP code to produce outcomes and K1, K2, K3
solve problems using various objects and methods
CO4 Analyze the properties of various forms and apply to build K1,K3, K4
applications
CO5 Connect PHP with MySQL database, test, debug, and deploy K3, K4
web pages containing PHP and MySQL.

K1-Knowledge, K2-Understand, K3-Apply, K4-Analyze

CO-PSO MAPPING MATRIX:

CO PSO1 PSO2 PSO3 PSO4 PSO5


CO1 3 2 2 3 3
CO2 3 3 3 3 3
CO3 3 3 3 3 3
CO4 3 3 3 3 3
CO5 3 3 3 3 3
AVERAGE 3 2.8 2.8 3 3
3- Highly Correlated, 2- Moderately Correlated, 1-Slightly Correlated,
0-No Correlation

92
JUSTICE BASHEER AHMED SAYEED COLLEGE FOR WOMEN (Autonomous)
CHENNAI – 18
SEMESTER IV (REGULAR) – Applicable to the candidates admitted in the year
2021 Onwards
II BCA Core Theory-8 Web Development with PHP & MySQL
(Integrated)

Time: THREE HOURS Maximum Marks: 100

Section - A 20 Marks
Answer all the Questions
I. Fill in the blanks: (5 x 1 =5 Marks)
1. PHP stands for ____________.
2. __________function operates similarly to fgets (), except that it also strips any
HTML and PHP tags form the input.
3. ______________ method scope prevents a method from being overridden by a
subclass.
4. The variable __________ is used to collect form data sent with both the GET
and POST methods.
5. In PHP in order to access MySQL database you will use ____________ function.

II. Choose the Correct Answer: (5 x 1 =5 Marks)


6. PHP scripts are enclosed within ______________
i. <php> . . . </php> ii. <?php . . . ?>
iii. ?php . . . ?php iv. <p> . . . </p>
7. To compare two strings which of the following function is used?
i. strcmp() ii. stringcmp()
iii. strcompare() iv. none
8. PHP recognizes constructors by the name_____.
i. classname() ii. _construct()
iii. function _construct() iv. function __construct()
9. Which two predefined variables are used to retrieve information from forms?
i. $GET & $SET ii. $_GET & $_SET
iii. $__GET & $__SET iv. GET & SET
10. The ............. statement is used to delete a table.
i. drop table ii. delete table
iii. del table iv. remove table

III. Answer in one or two Sentences: (5 x 2 = 10 Marks)


11. List any three features of PHP.
12. Define array with an example.
13. Write the steps for creating Classes and Objects in PHP.
14. Write the code for creating File Upload Forms.
15. Read the code for retrieving data with SELECT.
93
JUSTICE BASHEER AHMED SAYEED COLLEGE FOR WOMEN (Autonomous)
CHENNAI – 18
SEMESTER IV (REGULAR) – Applicable to the candidates admitted in the year
2021 Onwards
II BCA Core Theory-8 Web Development with PHP & MySQL
(Integrated)

Time: THREE HOURS Maximum Marks: 100

Section - B (5 x 7 = 35 Marks)

Answer any Five Questions. All Questions Carry Equal Marks. Each
Answer Should Not Exceed 300 Words

16. Explain Operators and Expressions with an example.


17. List various types of arrays with an example.
18. Explain Constructors and Destructors.
19. Write the steps for generating Web Forms with PHP.
20. Connecting MySQL from PHP.
21. Explain various string handling functions.
22. Discuss about the uses of Inheritance to Extend Power of Objects.
23. Write a brief note on the workings of HTML form.

Section - C (3 x 15 = 45 Marks)

Answer any Three Questions. All Questions Carry Equal Marks. Each
Answer Should Not Exceed 600 Words

24. Write a brief note on Decision making statements.


25. Explain the concept of Working with References.
26. Illustrate the uses of Object Overloading with _get (), _set () and _call ()
27. Illustrate the uses of File Permissions.
28. Explain MySQL Data manipulations with PHP.

94

You might also like