The following code is not deleting the selected entries. What am I doing wrong, please.
require_once '../includes/jquery/jq-config.php';
// include the jqGrid Class
require_once “../includes/jquery/php/jqGrid.php”;
// include the PDO driver class
require_once “../includes/jquery/php/jqGridPdo.php”;
// Connection to the server
$conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD);
// Tell the db that we use utf-8
$conn->query(“SET NAMES utf8”);
// Create the jqGrid instance
$grid = new jqGridRender($conn);
// Write the SQL Query
$grid->SelectCommand = “select lead_id,lastname,firstname,phone,concat_ws(', ',streetno,street,suburb,town) as addr,ddate from “.$filterfile;
// Set the table to where you add the data
$grid->table = $filterfile;
$grid->setPrimaryKeyId('lead_id');
// set the ouput format to json
$grid->dataType = 'json';
// Let the grid create the model
$grid->setColModel();
// Set the url from where we obtain the data
$grid->setUrl('getaLeads.php');
// Set grid caption using the option caption
$grid->setGridOptions(array(
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top