<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<?php
// put your code here
include './conn.php';
$qr="select * from new_reg";
$recd= mysqli_query($Conn, $qr);
?>
<center>
<table cellpadding="6px" border="1px">
<th>Student id</th>
<th>Student Name</th>
<th>Student city</th>
<th>student contact</th>
<th>Active/Deactive</th>
<th>Delete</th>
<th>Update</th>
<?php
while($res1=mysqli_fetch_assoc($recd))
{
echo "<center>";
echo "<tr><td>".$res1['id']."</td>
<td>".$res1['name']."</td>
<td>".$res1['city']."</td>
<td>".$res1['cnno']."</td>"
. "<td><a href=# name=link >A/D</a></td>"
. "<td><a href=delete.php?id=".$res1['id'].">Delete</td>"
. "<td><a href=# name=link2>Update</td>";
echo "</center>";
}
?>
</table>
</center>
</body>
</html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<?php
// put your code here
include './conn.php';
$qr="select * from new_reg";
$recd= mysqli_query($Conn, $qr);
?>
<center>
<table cellpadding="6px" border="1px">
<th>Student id</th>
<th>Student Name</th>
<th>Student city</th>
<th>student contact</th>
<th>Active/Deactive</th>
<th>Delete</th>
<th>Update</th>
<?php
while($res1=mysqli_fetch_assoc($recd))
{
echo "<center>";
echo "<tr><td>".$res1['id']."</td>
<td>".$res1['name']."</td>
<td>".$res1['city']."</td>
<td>".$res1['cnno']."</td>"
. "<td><a href=# name=link >A/D</a></td>"
. "<td><a href=delete.php?id=".$res1['id'].">Delete</td>"
. "<td><a href=# name=link2>Update</td>";
echo "</center>";
}
?>
</table>
</center>
</body>
</html>
========================================================================
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<?php
// put your code here
include './conn.php';
$id=$_REQUEST['id'];
$qde1="delete from new_reg where id='$id';";
//rdel=mysqli_query($Conn,$qdel);
if(mysqli_query($Conn, $qde1))
{
echo "deleted";
header("Location:view_1.php");
}
else {echo "00";}
?>
</body>
</html>
=====================================================================
<?php
for($k=1950;$k<=1997;$k++)
{
echo "<option>$k</option>";
}
?>
=====================================================================
<?php
for($k=1950;$k<=1997;$k++)
{
echo "<option>$k</option>";
}
?>
Comments
Post a Comment