Wednesday, February 22, 2012

Delete data from MySql Database


This program will delete data from MySql server Database. Change the database name and table name according to your system setting.

Before delete operation:-




After Delete operation:-
 
<?php
$conn=mysql_connect("localhost","root","");
if($conn==NULL)
 echo "Database connection failure";
$db=mysql_select_db("asp",$conn);
if($db==NULL)
   echo "Database selection failure";
$qur="delete from login where username='aaa'";
mysql_query($qur);
?>

No comments:

Post a Comment