0% found this document useful (0 votes)
14 views

Guidelines AdvancedWebProgramming

Php and script

Uploaded by

prathanos7
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

Guidelines AdvancedWebProgramming

Php and script

Uploaded by

prathanos7
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Guidelines of Generic Elective Semester V

(NEP UGCF 2022)

GE5b: Advanced Web Programming


(Effective from Academic Year 2024 – 25)

S. No. Unit Name Chapters References Hours


1. Introduction to PHP: Basic syntax, defining Ch-1
variables and constants, data types including Ch-3 [1]
arrays, operators and expressions, decision Ch-4 till pg pg.90 8
making statements, constructs for iterations. Ch-6 till pg.129
2. String Handling: Creating a string and
accessing its content, searching and replacing Ch-3 till pg.91 [2] 5
content of a string, select built-in functions
from table 3-1:
chop, ltrim, rtrim, trim, strtoupper,
strtolower, ucfirst, ucword, explode,
implode, join,substr, strcmp,strcasecmp,
strlen,strstr, strrchr, strpos, strspos,
str_replace, str_repeat,strrev,str_split.
3. Handling HTML Form with PHP: Creating a Ch- 12
form, submitting data to the server at the (GET and POST
backend using GET and POST methods, method reference may [1] 12
GET vs POST methods, PHP global be taken from
functions. w3schools.com)
4. Database: Connectivity with database, Ch-10
database creation, creating tables, create, [2] 14
retrieve, update, and delete (CRUD)
operations
Ch-22
5. jQuery and JSON (Pg. 512 – 526,
530 – 538 [1] 4
Before animation,
542 – 544)
Ch-8 [4] 2
(Pg. 376 – 377)

Textbooks:

1. Nixon, R. Learning PHP, MySQL & JavaScript A Step-by-Step Guide to Creating Dynamic Websites,
O'Reilly, 2021, 6th edition.
2. Holzner S. PHP: The Complete Reference, McGraw Hill, 2017
3. Murach J, Murach's PHP and MySQL, 2nd edition, Mike Murach & Associates, 2014.
4. Duckett, J. JavaScript and JQuery: Interactive Front-End Web Development, Wiley, 2014.

Additional References
1. w3schools. https://www.w3schools.com/php/default.asp
2. Tutorialspoint. https://www.tutorialspoint.com/php/index.htm

Practical Exercises
1. Write a PHP script to reverse the digits of a number.
2. Create a web page containing two text boxes and a button named “Evaluate”. When the
user enters numbers in the text boxes and clicks on the “Evaluate” button, a function
should evaluate the sum of the numbers and display the result.
3. Write a PHP script to perform following string operations using in-built functions and
built an interactive web page having buttons for each of the following operation:
a. Find the length of a string
b. Find a substring from a string
c. Replace text within a string
d. Remove whitespace and other predefined characters from both sides of a string.
e. Check if a value is a string
f. Convert the first character of each word in a string into uppercase.
4. Design a Login form and validate that form using PHP code. Display error message box
when data is not valid otherwise redirect to the next page and display “Welcome
username!”.
5. Design a student registration form, using appropriate input fields consisting of following:
a. First Name
b. Last Name
c. Gender
d. Roll Number
e. Phone Number
f. Course
Submit and retrieve the form data using $_POST, $_GET variable.
6. Write PHP Code to make connection to MySql database, create database and tables and
perform insertion, deletion, and retrieval of the data (Using SQL operations like JOIN,
ORDER BY, GROUP BY) Display the messages such as “The record is added in the
database!” when data is inserted into the database, “A record is deleted from the
database” when data is deleted from the database. Use appropriate button names such as
Add Data, Delete Data, and Display Data.

jQuery and JSON

1. Change text color and contents using button click events using jQuery
2. Select elements using ID, class, elements name, attribute name
3. Run code on click events in jQuery

You might also like