PHP Program List BCA 3 Page 1 Program list for PHP
SRNO DEFINITION LOGIC/HINT
1 W.a.p. to print message on the screen Basic program
2 W.a.p. to print variables on the screen Basic program
3 W.a.p. to print sum of two integers on the screen Basic program 4 w.a.p. to print sum of two integers in table format Basic program
5 W.a.p. to display image in php Basic program
6 W.a.p. that enter your name and surname from user and print the sum Get post program 7 W.a.p. that Enter two numbers from user and do arithmetic operation Get post program 8 W.a.p. that print your gender using radio button radio button
example
9 W.a.p. that display item you buy combo box
example
10 W.a.p. that display hobbies checkbox
example 11
w.a.p. that enter your personal information from
user(name,surname,age,gender,stream, address, hobbies) and display it in table format
all form's
controls example 12 w.a.p. that check whether given number is even or odd If condition 13 W.a.p. that check whtether given number is prime or not while loop, if,
break
14 W.a.p. that check whether given number is armstrong or not while loop, if, break
15 W.a.p. that check given number is palindrom number or not while loop, if, break
16 w.a.p. that print factorial of a given number use for loop
17 w.a.p. that print sum of digit while loop
18 W.a.p. that print array elements Array program
19 W.a.p. that print marks of each subject use associative
array 20 W.a.p. that enter 5 numbers from user and store them into array and
display them
21 W.a.p. that enter 5 numbers from user and print sorted array use array 22 W.a.p. that enter 5 numbers from user and search the number in array Array program 23 W.a.p. that enter 5 numbers from user and print maximum number Array program 24 W.a.p. that enter your name, no, marks of 4 subject and print result Array program 25 W.a.p. that enter records of 5 students and display them in table format use associative
array 26 W.a.p. that enter age and name of 3 person and display them in table
format
use associative array
27 W.a.p. that display result of 3 students of 4 subjects in table format
use
multidimensional array
PHP Program List BCA 3 Page 2
28 use for loop
29 W.a.script that display message on screen using udf UDF 30 W.a.script that demostarte default argument function UDF 31 W.a.script that calculate simple interest take interest rate = 0.12 if not
given
UDF default argument function
32 sod reverse, armstorn
33
W.a.p. to enter how many records you want to enter, Enter name and designation of person and display it in table format (use 3 php files, use associative array)
34 Program of format menu (bold, italic, underline)
35 Program of font menu (font color, size and style)
36 Program for string functions take 3 radio button for uppercase lowercase
and reverse and enter string string functions
37 W.a.s. for string piramid string piramid
using substr() 38 Write a script that enter 5 numbers from user store it into array and print
sorted array
usign sort() function 39 w. a script that enter filename from user and display the content of a file
File handling programs 40 w.a. script that enter string and filename from usr andwrite string to a
file
41 w. a script that enter string and filename from usr andwrite string to a file (append)
42 Write a script that enter a file name from user and count no of characters in a file
43 Write a script that enter two filename from user and copy one file content into another
44 Write a script that count how many lc, uc, digits sp and space in a file 45 W.a. script that allow zero or more digits [0-9]
Regular Expression Program 46 W.a. script that allow one or more digits [0-9]
47 W.a. script that allow zero or one digits [0-9] 48 W.a. script that allows only lowercase alphabets 49 W.a. script that allows only Uppercase alphabets 50 W.a. script that allows only alphabets
51 W.a. script that allows only alphanumberic characters 52 W.a.script that allow to enter date in dd/mm/yyyy format 53 W.a.script that allow to enter 6 digit pincode
54 W.a.script that allow +91 10 digit mobile number 55 W.a.script that allow only 1,2, or 3 digit only
56 Write a program to set and retrieve cookie value Cookie
57 Write a program to send session value to next page Session 58 Write a program to display file uploaded file content (name, type,size,
tmp_name) File upload
59 Write a script to upload a file in php File upload
PHP Program List BCA 3 Page 3 PHP MYSQL Program List -1
1. Write a script to enter database name and create database
2. Write a script to create student table with following structure(id int, name varchar(20), branch varchar(20), se mint)
3. Write a script to create customer table with following structure(id int, name varchar(20), age int, city varchar(20), salary float(8,2))
4. Write a script to insert record into student table (without form)
5. Write a script that delete record from customer table (without form)
6. Write a script that update customer table set salary =20000 where age is greater than 30 (without form)
PHP Program List BCA 3 Page 4 8. Design following interface and write a script that enter records into Book table
9. Write a script that enter marks of 3 subject and display marksheet of a student
10. Write a script that display table data into tabular format
11. Write a script that Input an Id of a student and display only that student’s record Or
12. Write a script that search a record from table student and if number is found display the record, if record is not found, display appropriate message
PHP Program List BCA 3 Page 5 13. Write a script that select id from combo box and display the record of selected id from person
table
14. Write a script that delete record from customer table (select customer id using combo box)
15. Write a script that delete record from customer table (select customer id using radio button)
16. Write a script that update record in student table using following interface
PHP Program List BCA 3 Page 6 Write a script that print sum of total pages typed by every operator. (make only one file)
18. Write a script that print average daily pages typed in ABC co. (use avg() function
19. Consider following table.Write a script that that (use of count function with where condition) count number of employee live in Ahmedabad
Count number of employee whom salary is greater than 5000 Count number of employee whose age is greater than 5000
20. Write a program that count number of students who are study in branch bca and sem 2(use where condition with and operator)
21. create student class with id, and name. create result class that extend student class and enter marks of 3 subject and print the result of student in table format (single inheritance)
22. Create student class with id and name. Create bca and bscit class with static field branch and display student information (id, name and branch) in table format. (use hierarchical inheritance) 23. Create abstract class bank with abstract method getinterestrate() define two class SBI and PNB
that implement this method. And display the interest rate. 24. Write a script that demonstrate Ajax with PHP (ajax program 1)
25. Write a script that demonstrate how to send data to php script using ajax (ajax program 2) 26. Write a script that demonstrate Ajax with mysql (ajax program 3)
27. Write a script that hide paragraph by clicking on paragraph (use jquery) 28. Write a script that hide paragraph by clicking on button (use jquery)
29. Write a script that hide and unhide image by clicking on button take two buttons one for hide and another for unhide