//Get the id for the row to delete
$row_id = $_POST['linklabel'];
//Write the query
$sql = "DELETE FROM pages WHERE id=" . $row_id;
//Execute the query
$query = mysql_query($sql);
if($query){
echo "The row is successfully deleted from the database.";
}
else{
die("Cannot delete the row. " . mysql_error());
exit;
}
Hope this help!
Zero13
Practically a Master Poster
624 posts since Jan 2009
Reputation Points: 120
Solved Threads: 139