Date:  03/31/2014 02:41:55 PM Msg ID:  004679
From:  FoxWeb Support Thread:  004678
Subject:  Re: PHP Code to VFP/FoxWeb
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
						
			
  1. $rs = mysql_query('select * from users');
  2. $result = array();
  3. while($row = mysql_fetch_object($rs)){
  4. array_push($result, $row);
  5. }
  6.  
  7. 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?