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

PHP Practical Index

The document outlines a practical syllabus for a PHP & MySQL course at B.S. Patel Polytechnic, detailing various programming tasks and projects. It includes sections on basic programming, built-in functions, forms, session handling, cookies, and MySQL database operations. Each section lists specific PHP scripts to be written, covering a range of topics from arithmetic operations to database management.

Uploaded by

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

PHP Practical Index

The document outlines a practical syllabus for a PHP & MySQL course at B.S. Patel Polytechnic, detailing various programming tasks and projects. It includes sections on basic programming, built-in functions, forms, session handling, cookies, and MySQL database operations. Each section lists specific PHP scripts to be written, covering a range of topics from arithmetic operations to database management.

Uploaded by

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

B.S.

PATEL POLYTECHNIC, Ganpat University, Kherva


INDEX
NAME: En. No:
SUBJECT: PHP & MySQL (1IT2402)
BRANCH: INFORMATION TACHNOLOGY SEMISTER : 4th
UNI Sr. CHAPTERS/PRACTICAL START END PAGE REMARKS/
SIGN
TS No. Date Date No GRADS

BASIC PROGRAM
1 Write a PHP script to display Welcome
message.
2 Write a PHP script for Addition of two
numbers.
3 Write a PHP script for Swapping of Three
numbers.
4 Write a PHP script to demonstrate arithmetic
operators, comparison operator, and logical
1 operator.
5 Write a PHP script to Check the given
number is ODD or EVEN.
6 Write a PHP script to find maximum number
out of three given numbers.
7 Write a PHP script to Check the given
number is Palindrome or Not.
8 Write a PHP script to Check the given
number is Armstrong or Not.
9 Write a PHP script to print Fibonacci series.

10 Write a PHP script to check the given


number is prime or not.
11 Write PHP Script to calculate total marks of
student and display grade

BUILT-IN FUNCTIONS

1 Write a PHP script to get type of variable


using gettype()
2 Write a PHP script to get type of variable
using gettype().
2
3 Write a PHP script to set type of variable
using settype().
4 Write PHP script to demonstrate use of string
function- chr() and ord().
5 Write PHP script to demonstrate use of string
function- strtolower () & strtoupper () &
strlen().
6 Write PHP script to demonstrate use of string
function- ltrim() & rtrim() & trim().
7 Write PHP script to demonstrate use of string
function- substr()
8 Write PHP script to demonstrate use of string
function- substr().
9 Write PHP script to demonstrate use of string
function- strcmp ().
10 Write PHP script to demonstrate use of string
function- strcasecmp ().
11 Write PHP script to demonstrate use of string
function- strpos().
12 Write PHP script to demonstrate use of string
function- - str_replace ().
13 Write PHP script to demonstrate use of string
function- strrev ().
14 Write PHP script to demonstrate use of Math
functions. abs() & round().
15 Write PHP script to demonstrate use of Math
functions. ceil() & floor().
16 Write PHP script to demonstrate use of Math
functions. min() & max().
17 Write PHP script to demonstrate use of Math
functions. pow() & sqrt().
18 Write PHP script to demonstrate use of
date/time functions – date().
19 Write PHP script to demonstrate use of
date/time functions – getDate().
20 Write PHP script to demonstrate use of
date/time functions – Setdate ().
21 Write PHP script to demonstrate use of
date/time functions – mktime().
22 Write PHP script to demonstrate use of
date/time functions – time() & checkdate().
23 Write PHP script to demonstrate File
function.
24 Write PHP Script to demonstrate use of
Indexed/Numeric arrays and for FOR EACH
loop execution.
25 Write PHP Script to demonstrate use of
associative arrays and for FOR EACH loop
execution.
26 Write PHP Script to demonstrate use of
mixed array indexed +associative arrays and
print using prinr_r() function
27 Write PHP Script to demonstrate use of
multidimensional arrays .
28 Write PHP Script to demonstrate sorting
arrays .

FORMS

1 Create student registration form using


text box, check box, radio button, select,
submit button. And display user inserted
3 value in new PHP page.
2 Create Website Registration Form using
text box, check box, radio button, select,
submit button. And display user inserted
value in same PHP page.(PHP_SELF)
3 Create employee registration form using
text box, check box, radio button, select,
submit button. And display user inserted
value in new PHP page using
$_REQUEST[].
4 Create PHP script that can upload any
type of file to the specific folder.

SESSION, COOKIES AND ERROR HANDLING


1 Write two different PHP script to
demonstrate passing variables through a
URL.
2 Write a PHP program that demonstrate use of
session:1
3 Write a program that demonstrate use of
session:2
4 4 Write a program that demonstrate use of
cookies: 1

5 Write a program that demonstrate use of


cookies:2
6 Write a program to keep track of how
many times a visitor has loaded the page.
7 Write a program that displays a different
message based on time of day. For example
page should display “Good Morning” if it is
accessed in the morning.

MYSQL DATABASE
1 Write a PHP program to create a database
using MySQL.
2 Write a PHP program to drop a database
using MySQL.
3 Write a PHP program to create a table in
MySQL.
5
4 Write a PHP program to insert record into a
table using MySQL
5 Write a PHP program to select data and
show into table format.
6 Create a student Registration in PHP and
Save and Display the student Records
7 Create a dynamic web site using PHP
and MySQL.

You might also like