How to modify the data returned from the server from the server?
How to modify the data returned from the server from the server?
cris19n
Posts: 55Questions: 18Answers: 0
i am using server side.
php code, send the parameters of my table:
<?php
require 'serverside.php';
$table_data->get('table', 'id', array('id','item1','item2','item3','item4','item5','item6','item7','item8','item9'));
and I want to modify the data returned from the server directly from the server.
for example, encode the field "id".
I appreciate your answers
Answers
I don't know what
$table_data->get()
is doing I'm afraid - presumably it is getting the data from the database, but it is also JSON encoding it and echoing it out to the client-side? It doesn't look like one of the scripts that we maintain and publish - where did you get thatserverside.php
?Allan
I found it in some server side example post.. I don't remember which one.
file serverside.php
Not a script I immediately recognise, but on line 108 there is a check for the
version
column. No reason you couldn't add another check for anid
column and add your encoding there.Allan