PHP Example
Screen shot
index.php

<?php
session_start();
$conn=mysql_connect(\'localhost\',\'root\',\'\') or die(\'Not connected\');

$database=mysql_select_db(\'student\',$conn) or die(\'Database Not connected\');

if(isset($_SESSION[\'msg\']))
{
echo $_SESSION[\'msg\'];
unset($_SESSION[\'msg\']);
}
$query=\"SELECT * FROM info\";
$data=mysql_query($query);
echo \"<table border=\'1\'>\";
echo \"<tr>\";
echo \"<th>Fname</th>\";
echo \"<th>Lname</th>\";
echo \"<th>Delete</th>\";
echo \"</tr>\";
while($result=mysql_fetch_array($data))
{
echo \"<tr>\";
echo \"<td>$result[1]</td>\";
echo \"<td>$result[2]</td>\";
echo \"<td><a href=\\\"delete.php?id=$result[0]\\\">Delete</a></td>\";
echo \"</tr>\";
}
echo \"</table>\";
?>

delete.php

<?php
session_start();
$conn=mysql_connect(\'localhost\',\'root\',\'\') or die(\'Not connected\');

$database=mysql_select_db(\'student\',$conn) or die(\'Database Not connected\');

$id=$_REQUEST[\'id\'];

$query=\"delete FROM info where id=$id\";
$data=mysql_query($query);
$_SESSION[\'msg\']=\"Record Successfully delete\";
header(\"Location:index.php\");
?>

Mysql Database

-- phpMyAdmin SQL Dump
-- version 3.2.0.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Aug 21, 2011 at 01:41 PM
-- Server version: 5.1.36
-- PHP Version: 5.3.0

SET SQL_MODE=\"NO_AUTO_VALUE_ON_ZERO\";

--
-- Database: `student`
--

-- --------------------------------------------------------

--
-- Table structure for table `info`
--

CREATE TABLE IF NOT EXISTS `info` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `fname` varchar(255) NOT NULL,
  `lname` varchar(255) NOT NULL,
  `email` varchar(255) NOT NULL,
  `country` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;

--
-- Dumping data for table `info`
--

INSERT INTO `info` (`id`, `fname`, `lname`, `email`, `country`) VALUES
(1, \'Umesh\', \'Sharma\', \'shishir0@gmail.com\', \'usa\'),
(2, \'Sanjay\', \'Prashar\', \'ravi08@yahoo.com\', \'india\'),
(3, \'Yogesh\', \'Khanna\', \'yogesh@yahoo.com\', \'America\'),
(4, \'Deepak\', \'Kumar\', \'deepak@gmail.com\', \'India\');

You can download source code here