You should look into the fwJSON object. I am not familiar with PHP at all, but my guess is that you are looking for the Write or WriteCursor methods.
FoxWeb Support Team
support@foxweb.com email |
Sent by Ali Koumaiha on 03/31/2014 02:30:19 PM:
I am trying to learn incorporate some jQuery EasyUI and i am looking at the sample, however, they have PHP for the scripts.
This is the code in PHP
- $rs = mysql_query('select * from users');
- $result = array();
- while($row = mysql_fetch_object($rs)){
- array_push($result, $row);
- }
-
- echo json_encode($result);
|
I know how to get the data into a cursor or an array in VFP from my SQL,
however, the echo json_encode($result);
anyone know what is the equivalent of that in VFP/FoxWeb script?