As I can understand - problem is remote.php file ...
I used from Pro evoliution sample "php\database\remote.php" and here exist only "data" return.
require_once '../conf.php';
$dbh = getDatabaseHandle();
$sql = "select orders.ord_id, orders.item_id,items.item_name_lt as item_name, orders.ord_qnt, orders.ord_date, orders.ord_week,
orders.ret_date, orders.ret_week, orders.fact_date, orders.fact_week from orders
left join items on items.item_id = orders.item_id and items.db = orders.db and items.item_type_id='prod'
where orders.db = 'ut'";
$stmt = $dbh->prepare($sql);
$stmt->execute();
$rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
echo "{\"data\":". json_encode( $rows ) ." }";
Where I can get fully functional php sample - with posted args and with fully return ?
index js :
var data = response.data,
totalRecords = response.totalRecords,
len = data.length,
curPage = response.curPage,
pq_data = pqVS.data,
init = (curPage - 1) * pqVS.rpp;
I must to return also "totalRecords", "response.curPage" as I can see ...
Please, can you share with fully working sample for php database ...
Thanks ...