Printphp.docx

  • Uploaded by: kunal
  • 0
  • 0
  • December 2019
  • PDF

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


Overview

Download & View Printphp.docx as PDF for free.

More details

  • Words: 4,104
  • Pages: 58
Name – Pradeep Kumar Yadav

Class – TYBCA

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

Name – Pradeep Kumar Yadav

{ echo $ans=($x-$y); } function mul($x,$y) { echo $ans=($x*$y); } function div($x,$y) { echo $ans=($x/$y); } if($n==1) { add($a,$b); } if($n==2) { sub($a,$b); } if($n==3) { mul($a,$b); } if($n==4) { div($a,$b); } ?>

Class – TYBCA

Roll No. – 22

Page 9

Name – Pradeep Kumar Yadav

Class – TYBCA

Roll No. – 22

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
Red Green Pink Blue



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..



Page 11

Name – Pradeep Kumar Yadav

Class – TYBCA

Roll No. – 22

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.

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 14

Name – Pradeep Kumar Yadav

Class – TYBCA

Roll No. – 22

<strong>User Login Form
Email
:
Password
:


If You have not an account then Register


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 17

Name – Pradeep Kumar Yadav

Class – TYBCA

Roll No. – 22

<strong>User Registration Form
Name
:
Email
:
Password
:
Profile Image
:
Contact
:
Address
:
If You have already an account then Login


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 20

Name – Pradeep Kumar Yadav

Class – TYBCA

Roll No. – 22

<strong>User Contact Us Form
Email
:
Mobile
:
Message
:


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 "; while($row=mysql_fetch_row($result)) { echo ""; } echo "

Welcome  

Product TypeImageCompanyModelPriceDetails
$row[2]$row[4]$row[5]$row[6]$row[7]
"; ?>

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 27

Name – Pradeep Kumar Yadav

Class – TYBCA

Roll No. – 22

<strong>Admin Login Form
Email
:
Password
:


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

<strong>Control Panel



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
"; while($row=mysql_fetch_row($result)) { echo ""; } echo "
NameEmailPasswordProf_ImgConta ctAddressAction
$row[1]$row[2]$row[3]$row[5]$row[6]Edit/Delete
"; //} ?>


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
<strong>Add User Form
Name
:

Page 34

Name – Pradeep Kumar Yadav

Class – TYBCA

Roll No. – 22

Email
:
Password
:
Profile Image
:
Contact
:
Address
:
If You have already an account then Login


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


Page 36

Name – Pradeep Kumar Yadav

Class – TYBCA

Roll No. – 22



Page 37

Name – Pradeep Kumar Yadav

Class – TYBCA

<strong>User's Profile Change
Name
:
Email
:
Password
:
Profile Image
:
Contact
:
Address
:


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
"; while($row=mysql_fetch_row($result)) { //print_r($row); echo ""; } echo "
Cont_idEmailContactMessageAction
$row[0]$row[1]$row[2]$row[3]Delete
"; //} ?>


Page 40

Name – Pradeep Kumar Yadav

Class – TYBCA

Roll No. – 22

Page 41

Name – Pradeep Kumar Yadav

Class – TYBCA d.2 Contact us(Delete)



Roll No. – 22

Page 42

Name – Pradeep Kumar Yadav

Class – TYBCA

Roll No. – 22

e.1.a. View Product Master <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> View ProductMst
"; while($row=mysql_fetch_row($result)) { echo ""; } echo "
Company NameCompany DetailProduct TypeAction
$row[1]$row[2]$row[3]Edit/Delete
"; ?>


Page 43

Name – Pradeep Kumar Yadav

Class – TYBCA

Roll No. – 22

Page 44

Name – Pradeep Kumar Yadav

Class – TYBCA

Roll No. – 22

e.1.b. Product Master (add) <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> Prod_mst


Page 45

Name – Pradeep Kumar Yadav

Class – TYBCA

Roll No. – 22

<strong>Prod_Master
Company Name
:
Company Detail
:
Product Type
:


Page 46

Name – Pradeep Kumar Yadav

Class – TYBCA

Roll No. – 22

e.1.c. Product Master (edit) <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> Edit


Page 47

Name – Pradeep Kumar Yadav

Class – TYBCA

Roll No. – 22

<strong>Prod_Master
Company Name
:
Company Detail
:
Product Type
:


Page 48

Name – Pradeep Kumar Yadav

Class – TYBCA e.1.d. Product Master (delete)



Roll No. – 22

Page 49

Name – Pradeep Kumar Yadav

Class – TYBCA

Roll No. – 22

e.2.a. View Product Details <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> Product
"; while($row=mysql_fetch_row($result)) { echo ""; } echo "
Product TypeImageCompany NameModelRateProduct DetailAction
$row[2]$row[4]$row[5]$row[6]$row[7]Edit/Delete
"; ?>


Page 50

Name – Pradeep Kumar Yadav

Class – TYBCA

Roll No. – 22

Page 51

Name – Pradeep Kumar Yadav

Class – TYBCA

Roll No. – 22

e.2.b. View Product Details(add) <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> Add Prod_details


Page 52

Name – Pradeep Kumar Yadav

Class – TYBCA



Roll No. – 22

Page 53

Name – Pradeep Kumar Yadav

Class – TYBCA

<strong>Add Product Details
Company Name
: <select name="comp_name" /> $row[1]"; } ?>
Product Type
: <select name="prod_type" /> $row[3]"; } ?>
Product Image :
Model
:
Rate
:
Product Details
:


Roll No. – 22

Page 54

Name – Pradeep Kumar Yadav

Class – TYBCA

Roll No. – 22

e.2.c. View Product Details(edit) <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> Edit

Page 55

Name – Pradeep Kumar Yadav

Class – TYBCA

Roll No. – 22

<strong>Update Product Details
Company Name
:
Product Type
:
Product Image :
Model
:
Rate
:
Product Details
:


Page 56

Name – Pradeep Kumar Yadav

Class – TYBCA



Roll No. – 22

Page 57

Name – Pradeep Kumar Yadav

Class – TYBCA e.2.d. View Product Details(delete)



Roll No. – 22

Page 58

More Documents from "kunal"