Professional Documents
Culture Documents
TECHNOLOGY
BACHELOR OF TECHNOLOGY
Laboratory Manual
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
TABLE OF CONTENT
3|Pa ge
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
4|Pa ge
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
Experiment No. : 1
Aim : Create a webpage illustrating text formatting tags available in HTML. (i.e.
<h1>, <b>, <u>, <I>).
Code :
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h2>Second Heading</h2>
<h3>Third Heading</h3>
<h4>Fourth Heading</h4>
<h5>Fifth Heading</h5>
<p>This is a paragraph.</p>
<b>Bold</b>
<br>
<i>Italic</i>
<br>
<u>Underline</u>
<br>
<br>
5|Pa ge
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
</body>
</html>
Output :
6|Pa ge
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
Experiment No.:2
Aim : Create a webpage to demonstrate working of ordered, unordered and
nested list.
Code :
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<ol>
</ol>
<ul>
</ul>
<ol>
7|Pa ge
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
<ul>
<li>item 1</li>
<li>item 2
<ul>
<li>Red</li>
<li>Green</li>
</ul></li>
<li>item 3</li>
</ul>
<li>Item 2</li>
<ul>
<li>item 1</li>
<li>item 2</li>
<li>item 3</li>
<li>item 4</li>
</ul>
</ol>
</body>
</html>
8|Pa ge
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
Output :
9|Pa ge
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
Experiment No.:3
Aim : Create the given table.
Code :
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
th{
background-color: aqua;
</style>
</head>
<body>
<tr>
</tr>
<tr >
10 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
</tr>
<tr bgcolor="antiquewhite">
</tr>
<tr >
</tr>
<tr bgcolor="antiquewhite">
</tr>
<tr >
11 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
</tr>
<tr bgcolor="antiquewhite">
</tr>
</table>
</body>
</html>
Output :
12 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
Experiment No.:4
Aim : Using frames divide the webpage as follows.
Code :
Prac4.html :
<!DOCTYPE html>
<html>
<head>
<title>Prac-4</title>
</frameset>
</frameset>
</head>
</html>
Frame1.html :
<html>
<head>
13 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
</head>
<body>
<h1>This is a Header</h1>
</body>
</html>
Frame2.html :
<html>
<head>
</head>
<body>
</body>
</html>
frame3.html :
<html>
<head>
</head>
<body>
</body>
</html>
Frame4.html :
<html>
<head>
</head>
<body>
14 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
<h1>This is a Footer</h1>
</body>
</html>
Output :
15 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
Experiment No.:5
Aim : Create a HTML5 webpage which shows the use of Canvas.
Code :
Prac5.html :
<html>
<head>
<title>Prac-5</title>
</head>
<body>
</canvas>
</body>
</html>
Canvas2.html :
<html>
<head>
function drawShape()
if (canvas.getContext)
var aa = canvas.getContext('2d');
aa.fillRect(25,25,100,100);
aa.clearRect(45,45,60,60);
16 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
aa.strokeRect(50,50,50,50);
aa.strokeRect(150,150,200,200);
</script>
</head>
</body>
</html>
Canvas3.html :
<html>
<head>
function drawShape()
if (canvas.getContext)
var aa = canvas.getContext('2d');
aa.beginPath();
aa.moveTo(45,60);
aa.quadraticCurveTo(5,5,5,12.5);
aa.quadraticCurveTo(25,80,40,90);
aa.quadraticCurveTo(40,90,100,100);
17 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
aa.quadraticCurveTo(30,30,120,120);
aa.stroke();
</script>
</head>
</body>
</html>
Output :
18 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
19 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
Experiment No.:6
Aim : Create a HTML5 webpage which shows the use of Audio & Video.
Code :
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>video</title>
</head>
<body>
<table>
<tr>
<source src="S01E01.mp4">
</video></td>
</tr>
<tr>
<td>
<audio controls>
<source src="sample.mp3">
</audio>
</td>
</tr>
20 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
</table>
</body>
</html>
Output :
21 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
Experiment No.: 7
Aim : Create a student registration form using the following tags <form>,
<input>, <textarea>, <button>, <select>, <option>. The registration form must
consist of following information: Firstname, Middlename, Lastname, Gender,
Address, Phone No., Email id, Hobbies, City, State, Country, College Name.
Code :
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Registration Form</title>
</head>
<body>
<form>
<table>
<tr>
</tr>
<tr>
</tr>
<tr>
22 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
</tr>
<tr>
</tr>
<tr>
<td>Address :</td>
</tr>
<tr>
<td> <select>
<option>91</option>
<option >92</option>
<option >93</option>
<option>94</option>
<option >95</option>
</select>
</tr>
<tr>
</tr>
23 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
<tr>
<td>
Hobbies :
</td>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
<td>Country :</td>
<td>
</td>
</tr>
<tr>
<td> College :
</td>
24 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
<option value="ld">LD</option>
</select></td>
</tr>
<tr>
</tr>
</table>
</form>
</body>
</html>
25 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
Output :
26 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
Experiment No.:8
Aim : Create a HTML5 webpage which shows the use of Geolocation.
Code :
<html>
<head>
<title>Geolocation API</title>
</head>
<body>
<div id="loc"></div>
<script>
var x= document.getElementById("loc");
function getlocation()
if(navigator.geolocation)
navigator.geolocation.getCurrentPosition(showPosition)
else
function showPosition(position)
27 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
var x = "Current Location (" + "Latitude: " + position.coords.latitude + ", " + "Longitude: " +
position.coords.longitude + ")";
document.getElementById("loc").innerHTML = x;
</script>
</body>
</html>
Output :
28 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
Experiment No.:9
Aim : Apply inline, internal and external style-sheet for the student registration
form.
Code :
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Registration Form</title>
<style>
h1{
color: #e63838;
body{
margin: 20px;
padding: 20px;
</style>
</head>
<body bgcolor="#ddb8b8">
<form>
<table>
<div class="main">
29 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
</div>
<tr>
</tr>
<tr>
<td>Address :</td>
</tr>
<tr>
<td> <select>
<option>91</option>
30 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
<option >92</option>
<option >93</option>
<option>94</option>
<option >95</option>
</select>
</tr>
<tr>
</tr>
<tr>
<td>
Hobbies :
</td>
</tr>
<tr>
</tr>
<tr>
31 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
</tr>
<tr>
<td>Country :</td>
<td>
</td>
</tr>
<tr>
<td> College :
</td>
<option value="ld">LD</option>
</select></td>
</tr>
<tr>
</tr>
</table>
</form>
</body>
</html>
32 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
Prac7.css :
body{
font-size: 22px;
h1{
text-align: center;
input[type=text], input[type=password],textarea {
width: 50%;
padding: 5px;
display: block;
border: none;
background-color:white;
input[type=text]:focus,input[type=email]:focus,textarea:focus, input[type=password]:focus {
background-color: white;
outline: none;
33 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
Output :
34 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
Experiment No.:10
Aim : Implement 2D transformation on webpage.
Code :
<html>
<head>
<style>
div#h1{
width: 200px;
height: 100px;
background-color: pink;
-ms-transform: translate(50px,100px);
transform: translate(50px,100px);
div#h2{
width: 200px;
height: 100px;
background-color: lightblue;
-ms-transform: rotate(20deg);
transform: rotate(20deg);
div#h3{
width: 200px;
height: 100px;
35 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
background-color: pink;
-ms-transform: scale(0.5,0.5);
transform: scale(0.5,0.5);
div#h4{
width: 200px;
height: 100px;
background-color: lightblue;
-ms-transform: skew(20deg,10deg);
transform: skew(20deg,10deg);
div#h5{
width: 200px;
height: 100px;
background-color:pink;
font-weight: bold;
div#h6{
36 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
margin: 150px;
width: 200px;
height: 100px;
background-color: lightblue;
-ms-transform: scaleX(2);
transform: scaleX(2);
div#h7{
margin: 150px;
width: 200px;
height: 100px;
background-color: pink;
-ms-transform: scaleY(0.5);
transform: scaleY(0.5);
div#h8{
width: 200px;
height: 100px;
background-color: lightblue;
-ms-transform: skewX(20deg);
transform: skewX(20deg);
div#h9{
37 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
width: 200px;
height: 100px;
background-color: pink;
-ms-transform: skewY(-20deg);
transform: skewY(-20deg);
</style>
</head>
<body>
<p>rotate</p>
<br>
<br>
<div id="h2">Hello</div>
<p>scale</p>
<p>skew</p>
<p>matrix</p>
<div id="h5">Cryptography</div>
<br>
<br>
<p>translate</p>
<div id="h1">Programming</div>
<br>
<br>
38 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
<br>
<br>
<br>
<p>scaleX</p>
<div id="h6">Hello</div>
<p>scaleY</p>
<p>skewX</p>
<p>skewY</p>
<div id="h9">Cryptography</div>
</body>
</html>
39 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
Output :
40 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
Experiment No.:11
Aim : To create an HTML page to explain the use of various predefined functions
in an array & Date object in Javascript.
Code :
<html>
<head>
</head>
<body style="background-color:black;color:white">
<h4>
<p id="demo0"></p>
<hr><br>
<p id="demo1"></p>
<hr><br>
<p id="demo2"></p>
<script>
var i;
41 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
document.getElementById("demo0").innerHTML = d;
document.getElementById("demo1").innerHTML = text;
document.getElementById("demo2").innerHTML = flowers;
</script>
</h4>
</body>
</html>
Output :
42 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
Experiment No.:12
Aim : Write a program to show use of Alert, Confirm and Prompt box.
Code :
<html>
<h2>Alert Message</h2>
<script>
function myFunction() {
</script>
<h2>Confirm Box</h2>
<p id="demo"></p>
<script>
function myFunct() {
var txt;
if (confirm("Press a button!")) {
} else {
document.getElementById("demo").innerHTML = txt;
</script>
43 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
</body>
</html>
Output :
44 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
Experiment No.:13
Aim : A) Write a javascript to find highest from given three values.
Code :
<html>
<head>
<script>
function largest()
num1 = Number(document.getElementById("N").value);
num2 = Number(document.getElementById("M").value);
num3 = Number(document.getElementById("O").value);
document.getElementById('rst').innerText=num1+" is large";
document.getElementById('rst').innerText=num2+" is large";
document.getElementById('rst').innerText=num3+" is large";
</script>
45 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
</head>
<hr color="white">
<br>
<p id="rst"></p>
<hr color="white">
<center><button onclick="largest()">OK</button>
</body>
</html>
Output :
46 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
Code :
<html>
<head>
</head>
<script>
// This function will get value from user and pass it to Factorial function
function submit()
if( isNaN(num) )
return;
document.getElementById("answer").innerHTML = factorial;
47 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
var i;
var fact = 1;
fact = fact * i;
return fact;
</script>
</body>
</html>
Output :
48 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
Experiment No.:14
Aim : A) Write Javascript to calculate sum of 1 to n.
Code :
<html>
<head>
<body>
<p>Enter Number</p>
<p>Sum is :</p>
</body>
var n = parseInt(num);
result = sumnaturalno(n);
function sumnaturalno(n)
var i;
var sum = 0;
return (sum);
</script>
</head>
49 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
</html>
Output :
Code :
<html>
<head>
<script>
function Palindrome()
temp = number;
while(number>0)
rem = number%10;
number = parseInt(number/10);
final = final*10+rem;
50 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
if(final==temp)
else
</script>
</head>
<br>
<hr color="white">
<br>
<center><button onClick="Palindrome()">CHECK</button>
</body>
</html>
Output :
51 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
Experiment No.:15
Aim : Write a Javascript program to print current date & time.
Code :
<html>
<head>
</head>
<h1>Current Date</h1>
<p id="current_date"></p>
<hr color="black">
<h1>Current Time</h1>
<p id="current_time"></p>
<script type="text/javascript">
document.getElementById("current_date").innerHTML = date;
document.getElementById("current_time").innerHTML = time;
document.getElementById("current_dateandtime").innerHTML = dateTime;
</script>
</body>
</html>
52 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
Output :
53 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
Experiment No.:16
Aim: Create CD Catalogue Table in XML and display it using XSL Style Sheet.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<catalog>
<cd>
</cd>
<cd>
</cd>
<cd>
54 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
</cd>
<cd>
</cd>
<cd>
</cd>
<cd>
</cd>
<cd>
55 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
</cd>
<cd>
</cd>
<cd>
</cd>
<cd>
</cd>
</catalog>
56 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
<html>
<body>
<tr>
<th>Author</th>
<th>Genere</th> <th>Price</th>
<th>Country</th>
<th>Team</th>
</tr>
<xsl:for-each select="catalog/cd">
<tr>
<td><xsl:value-of select="author"/></td>
<td><xsl:value-of select="genere"/></td>
<td><xsl:value-of select="price"/></td>
<td><xsl:value-of select="country"/></td>
<td><xsl:value-of select="team"/></td>
</tr>
</xsl:for-each>
</table> </body>
</html>
</xsl:template>
</xsl:stylesheet>
57 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
Output:
58 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
Experiment No.:17
Aim : Creating the javascript file to handle our Json.
Code :
<html>
<head>
</head>
<body>
<p id="demo"></p>
</script>
</body>
</html>
• Output:
59 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
<head>
</head>
<body>
<p id="demo"></p>
</html>
• Output:
60 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
<head>
</head>
<body>
<p id="demo"></p>
</script>
</body>
</html>
• Output:
61 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
Experiment No.:18
Aim : Write a PHP code to print your personal details.
Code :
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
</form>
</body>
</html> <?php
if(isset($_POST['name']) && isset($_POST['enno']) && isset($_POST['dep'])){ echo
$_POST['name']."<br>"; echo $_POST['enno']."<br>"; echo $_POST['dep']."<br>";
}
?>
62 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
• Output:
63 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
Experiment No.:64
Aim : Write a PHP code to show the use of Decision Making and find out if given
number is prime or not prime.
Code :
<?php
function IsPrime($n)
return 0;
return 1;
• Output:
Enrollment No:-180303105059 64 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
Experiment No.:20
Aim : Write a PHP code for database connection with MySQL and also perform
insert and delete .
Code :
<?php
$servername="localhost";
$username="root";
$password="";
$conn=mysqli_connect($servername,$username,$password);
else{
else{ echo "The db was not craeted successfully because of this error---
>".mysqli_error($conn);
?>
Enrollment No:-180303105059 65 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
• Output:
Enrollment No:-180303105059 66 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
$servername="localhost";
$username="root";
$password="";
$db="dbJay";
$conn=mysqli_connect($servername,$username,$password,$db);
else{
$result=mysqli_query($conn,$sql);
if($result){
else{ echo "The Table was not craeted successfully because of this error---
>".mysqli_error($conn);
?>
Enrollment No:-180303105059 67 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
Output:
Enrollment No:-180303105059 68 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
$servername="localhost";
$username="root";
$password="";
$db="dbJay";
$conn=mysqli_connect($servername,$username,$password,$db);
else{
('Jay','180303105059')"; $result=mysqli_query($conn,$sql);
if($result){
else{ echo "The data was not craeted successfully because of this error---
>".mysqli_error($conn);
?>
Enrollment No:-180303105059 69 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
Output:
Database
Enrollment No:-180303105059 70 | P a g e
Faculty of Engineering & Technology
Subject Name: Web Programming
Subject Code: 203105354
B.Tech : CSE, Year : 3, Semester : 6
$servername="localhost";
$username="root";
$password="";
$db="dbJay";
$conn=mysqli_connect($servername,$username,$password,$db);
else{
$result=mysqli_query($conn,$sql);
if($result){
else{ echo "The Record was not deleted successfully because of this error---
>".mysqli_error($conn);
}
?>
• Output:
Enrollment No:-180303105059 71 | P a g e