This document was uploaded by user and they confirmed that they have the permission to share
it. If you are author or own the copyright of this book, please report to us by using this DMCA
report form. Report DMCA
Q – 1 Write a PHP code to print String Hello World in a browser.
Roll No. – 22
Page 1
Name – Pradeep Kumar Yadav
Class – TYBCA
Q – 2 Write a PHP code to perform addition of two number.
Roll No. – 22
Page 2
Name – Pradeep Kumar Yadav
Class – TYBCA
Q – 3 Write a PHP program to merge string and display.
Roll No. – 22
Page 3
Name – Pradeep Kumar Yadav
Class – TYBCA
Roll No. – 22
Q – 4 Write a PHP code for perform following html tags apply in given string. “Rofel Shri G. M. Bilakhia College Of Applied Sciences” , , ,
The word ROFEL Display in
. Word college must be highlight with bold and Underline. After Rofel whole sentence must be in italic. Rofel
Shri G. M. Bilakhia College Of Applied Sciences"; echo $c; ?>
Page 4
Name – Pradeep Kumar Yadav
Class – TYBCA
Roll No. – 22
Q – 5 Write A php code find greater number from given variables and display. $b) { echo " $a is greater than $b "; } else { echo " $b is greater than $a "; } ?>
Page 5
Name – Pradeep Kumar Yadav
Class – TYBCA
Q – 6 Write a php code to find vowel from a given variable
Q – 7 Write a php code to display odd number from given series. Odd Numbers"; for($i==0; $i<=$n; $i++) { if($i%2!=0) { echo $i." "; } } ?>
Roll No. – 22
Page 6
Name – Pradeep Kumar Yadav
Class – TYBCA
Q – 8 Write a php code to display even number from given series. Even Numbers"; for($i==0; $i<=$n; $i++) { if($i%2==0) { echo $i." "; } } ?>
Roll No. – 22
Page 7
Name – Pradeep Kumar Yadav
Class – TYBCA
Roll No. – 22
Q – 9 Write a php code for change the Webpage background red when user set variable value1 where value 0 for blue background color. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> Prog_10
Q – 10 write a php code and perform different operations like addition, subtraction, multiplication and division of two given number using function. If n = 1 then perform add, n = 2 for subtraction, n=3 for multiplication, n=4 for division. Where value of a = 50 and b = 100.
Page 8
Q – 11 Design a Webpage which contain multiple four color option. Webpage background color must be change according to color option selected by user. Color Change
Page 10
Name – Pradeep Kumar Yadav
Class – TYBCA
Roll No. – 22
Q – 12 Design a website named “Get Me Online.com” Product base website which consist of following pages. Client Side Admin Side a. Home Page a. Admin Login b. Login Page b. Control Panel Page c. User Registration Page c. View all User Page[with Add, Edit d. Contact Us Page Delete operation] e. Product Page d. View All Contact Us Page[with f. Log Out Page Delete] e. View All Product Page[with Add, Edit, Delete Operation] Note: Implement Following Features of PHP for Develop Above Web Pages. -Session, PHP supported functions, MySQL Functions, Control structure, Looping Structure, Validations etc. :-> Client Side <-: a. Home Page: <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> Home
<strong>Get me Online Provide You many Services..
Music, videos, games, and photos
Windows XP<span id="Windowsxp"> unlocks the world of digital media! Record your own favorite tunes or find music online. View DVDs and videos.
Page 11
Name – Pradeep Kumar Yadav
Class – TYBCA
Roll No. – 22
Hardware
The physical components of a computer, and the various accessory devices that can be added, are termed hardware. This section covers installing, using, and troubleshooting hardware, and describes the tools and programs.
Page 12
Name – Pradeep Kumar Yadav
Class – TYBCA
Roll No. – 22
Page 13
Name – Pradeep Kumar Yadav
Class – TYBCA
Roll No. – 22
b. Login Page: <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> Login
Page 15
Name – Pradeep Kumar Yadav
Class – TYBCA
Roll No. – 22
Page 16
Name – Pradeep Kumar Yadav
Class – TYBCA
Roll No. – 22
c. User Registration Page <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> User Registration
Page 18
Name – Pradeep Kumar Yadav
Class – TYBCA
Roll No. – 22
Page 19
Name – Pradeep Kumar Yadav
Class – TYBCA
Roll No. – 22
d. Contact Us Page <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> Contact Us
Page 21
Name – Pradeep Kumar Yadav
Class – TYBCA
Roll No. – 22
Page 22
Name – Pradeep Kumar Yadav
Class – TYBCA
Roll No. – 22
e. Product <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> Product
Welcome
Product Type
Image
Company
Model
Price
Details
"; while($row=mysql_fetch_row($result)) { echo "
$row[2]
$row[4]
$row[5]
$row[6]
$row[7]
"; } echo "
"; ?>
Page 23
Name – Pradeep Kumar Yadav
Class – TYBCA
Roll No. – 22
Page 24
Name – Pradeep Kumar Yadav
Class – TYBCA
Roll No. – 22
Page 25
Name – Pradeep Kumar Yadav
Class – TYBCA f.
Logout Page
Roll No. – 22
Page 26
Name – Pradeep Kumar Yadav
Class – TYBCA
Roll No. – 22
:-> 2. Admin Side <-: a. Admin Login <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> Admin Login
Page 28
Name – Pradeep Kumar Yadav
Class – TYBCA
Roll No. – 22
Page 29
Name – Pradeep Kumar Yadav
Class – TYBCA
Roll No. – 22
b. Control Panel Page <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> Admin Home
Page 30
Name – Pradeep Kumar Yadav
Class – TYBCA
Roll No. – 22
Page 31
Name – Pradeep Kumar Yadav
Class – TYBCA
Roll No. – 22
Page 32
c.1. View All User Page <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> View Users
Name – Pradeep Kumar Yadav
Class – TYBCA
Roll No. – 22
Page 33
Name – Pradeep Kumar Yadav
Class – TYBCA
Roll No. – 22
c.2. User(Add) <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> Add User
Page 35
Name – Pradeep Kumar Yadav
Class – TYBCA
Roll No. – 22
c.3. User(Edit) <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> Edit User
Roll No. – 22
Page 38
Name – Pradeep Kumar Yadav
Class – TYBCA c.4. User (Delete)
Roll No. – 22
Page 39
Name – Pradeep Kumar Yadav
Class – TYBCA
Roll No. – 22
d.1. Contact Us <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> Admin Contact Us