This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

DeleteData

By: dassoubarna on Apr 23rd, 2013  |  syntax: PHP  |  size: 0.27 KB  |  views: 28  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. ?>
clone this paste RAW Paste Data