hello everyone
I am using jqgrid for the first time I'm doing some tests but I came across an error that still could not solve, the data in Table I show off the grid can help me?
I'll put here the code of php and html.
thank you
and sorry for bad english
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);
// MySQL specific command for the charset
// Tell the db that we use utf-8
$conn->query(“SET NAMES utf8″);
// Create the jqGrid instance
$grid = new jqGridRender($conn);
// Data from this SQL is 1252 encoded, so we need to tell the grid
// Set the SQL Data source
$grid->SelectCommand ='SELECT id, nome, nif, contacto, transitario, user, arc, metodo, copia, motivo, changed_on, envia FROM importador';
// set the ouput format to XML
$grid->dataType = 'json';
//$Model = array(
//
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top