<?php
/**********************************************************
* phpJobScheduler *
* Author: DWalker.co.uk *
* phpJobScheduler © Copyright 2003 DWalker.co.uk *
* All rights reserved. *
**********************************************************
* Launch Date: Oct 2003 *
* Version Date Comment *
* 1.0 14th Oct 2003 Original release *
* 3.0 Nov 2005 Released under GPL/GNU *
* 3.0 Nov 2005 Released under GPL/GNU *
* 3.1 June 2006 Fixed modify issues, *
* and other minor issues *
* 3.3 Dec 2006 removed bugs/improved code *
* 3.4 Nov 2007 AJAX, and improved script *
* include using CURL and fsockopen *
* 3.5 Dec 2008 Improvements, including *
* single fire, silent db connect, fire time in minutes *
* NOTES: *
* Requires: PHP and MySQL *
**********************************************************/
$app_name = "phpJobScheduler";
$phpJobScheduler_version = "3.5";
// ---------------------------------------------------------
include_once("functions.php");
$id=clean_input($_POST['id']);
$table_name=clean_input($_POST['table_name']);
db_connect();
$query="delete from $table_name where id=$id";
$result = mysql_query($query);
if (!$result) echo "There has been an error: ".mysql_error();
else echo "Deleted";
db_close();
?>