0% found this document useful (0 votes)
51 views3 pages

Awad 7 & 8

The document describes two tasks for an advanced web application development project. The first task is to design and develop a user authentication system using cookies, sessions, JWT, and an SMS API and determine which is suitable for the application. The second task is to develop an add student profile page to store student data in a database and a webpage to retrieve student details based on a roll number or unique ID by querying the database and displaying the results.

Uploaded by

Sumedh Sumedh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views3 pages

Awad 7 & 8

The document describes two tasks for an advanced web application development project. The first task is to design and develop a user authentication system using cookies, sessions, JWT, and an SMS API and determine which is suitable for the application. The second task is to develop an add student profile page to store student data in a database and a webpage to retrieve student details based on a roll number or unique ID by querying the database and displaying the results.

Uploaded by

Sumedh Sumedh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Advanced Web Application Development REG NO: 20X51A05A0

Task: Design and develop a User Authentication System (Login-Logout functionality)


using cookies, sessions, JWT, and SMS API. Also, identify which is suitable for your
application

III-I CSE SREC, Nandyal Page: 179


Advanced Web Application Development REG NO: 20X51A05A0

Module 7
Task: Develop Add Student Profile Page to store data into the database and develop a
webpage to retrieve the student details based on the Roll Number or any unique ID.
<!DOCTYPE html>
<html lang="en">
<head>
<title>retrieve data from database</title>
</head>
<body>
<form action="" method="GET">
Enter ID<input type="text" name="id" value="<?php if(isset($_GET['id'])){echo $_GET['id'];} ?>" >

<button type="submit">Search</button>
//<input type="submit" value="search">
</form>

<?php
$con = mysqli_connect("localhost","root","","20x51a0562");
if(isset($_GET['id']))
{
$id = $_GET['id'];
$query = "SELECT * FROM student WHERE id='$id' ";
$query_run = mysqli_query($con, $query);
if(mysqli_num_rows($query_run) > 0)
{
foreach($query_run as $row)
{
?>
<label for="">Name</label>
<input type="text" value="<?= $row['Name']; ?>" >

<label for="">Phone Number</label>


<input type="text" value="<?= $row['Phone']; ?>" >

<label for="">Email</label>
<input type="text" value="<?= $row['Email']; ?>" >
<label for="">Address</label>
<input type="text" value="<?= $row['Address']; ?>" >

<?php
}
}
else
{

III-I CSE SREC, Nandyal Page: 165


Advanced Web Application Development REG NO: 20X51A05A0
echo "No Record Found";
}
}
Type your text
?>

</body>
</html>

III-I CSE SREC, Nandyal Page: 166

You might also like