Current File : /home/inlingua/www/sales/enquiry_delete.php
<?php
// Copyright, Panalink Infotech Limited. Created on: 19-02-2012
session_start();
include("check.php");

// Include the database connection details
require('dbConnection.php');

// Include common functions
require('commonFunc.php');

// Include common functions
require('globalVars.php');

// Include the table handler class
require('dbHandler.class.php');



// Setup table name, configuration and data entry form
$tableName = "jos_corporate_contact";
$tableConf = $tableName . ".conf.php";


// Include table configuration details
require($tableConf);



$dbObject = new dbHandler();
$dbObject->setTableName($tableName);
$dbObject->setDbFieldList($dbFieldList);
$dbObject->setKeyFieldName("recNo");
$dbObject->connect();

// Retrieve parameters from request
$dbObject->getDbFieldsFromRequest();

$action = $_REQUEST['aC'];

if($action=="Delete")
{
    $delete_array=$_REQUEST['mID'];
	
	foreach($delete_array as $val)
	{
	
	if ($dbObject->Delete("recNo",$val))
	{	
	  $succFailMesg = "<b>Entry deleted successfully</b><br>";
	}
	
	}

}	

header("Location:jos_corporate_contact.select.php?type=".$_REQUEST['type']."&offset=".$_REQUEST['offset']."");

?>