SHARE
TWEET

DeleteData

dassoubarna Apr 23rd, 2013 28 Never
  1. <?php
  2.   //DeleteData.php
  3.    $id = $_GET['rowId'] ;
  4.         mysql_connect("localhost","xxxxxxxx","xxxxxxx") or die("Error: ".mysqlerror());
  5.         mysql_select_db("xxxxxxxx");
  6.   /* Delete a record by id */
  7. $sql ="DELETE FROM `table` WHERE `id` = '$id'";
  8.   echo "Row Deleted";
  9. ?>
RAW Paste Data
Top