DELETE ROW DATA FORM MYSQL DATABASE USING PHP AND MY SQL
<?php $del_id=10; mysql_connect("localhost","root","")or die('not connect'); mysql_select_db('grocery')or die('not connect'); $del=mysql_query("delete from data where slr_id='$del_id'") or die(mysql_error()); if($del){ header("location:admin.php"); } ?>
Comments
Post a Comment