The code of my jqgrid “grid.php” is:
CODE:
<?php
require_once '../../../jq-config.php';
// include the jqGrid Class
require_once ABSPATH.”php/jqGrid.php”;
// include the driver class
require_once ABSPATH.”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 coddelegacion, descdelegacion, domiciliodelegacion, poblaciondelegacion, codpostaldelegacion, provinciadelegacion, telefonodelegacion, faxdelegacion, emaildelegacion FROM gestdelegaciones001';
// Set the table to where you add the data
$grid->table = 'gestdelegaciones001';
$grid->setPrimaryKeyId('coddelegacion');
$grid->serialKey = false;
// Set output format to json
$grid->dataType = 'json';
//Validacion
$checkTelefono = <<<CHECKER
function checkTel(value, colname) {
if (value.length==9)
return [true,””];
else
return [false,”El tel