How To Delete The Data In The Databas Through php
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>delete</title>
</head>
<body>
<?php
mysql_connect("localhost","root","");
mysql_select_db("student1");
$id=$_REQUEST['id'];
$name=$_REQUEST['name'];
$q="delete from student_info where id='$id'";
$qu=mysql_query($q);
if($qu)
{
echo "record is deleated";
}
else
{
echo "record is not deleated";
}
?>
</body>
</html>
No comments:
Post a Comment