returning multiple values using php to jquery.ajax with json -


I am trying to make simple calls to data from the database using php and ajax. I need many results, so I am using the json method but it is not working.

  $ Ajax ({type: "POST", data: "qid = 162", url: "activity_ajax.php", data type: Jason, success: function data) {warning (data.first);}}); "Activity":  ;    

You can send multiple data to the array and then press '1234 unlisted drive'); Echo json_encode ($ output, JSON_FORCE_OBJECT);

On the other hand you can use the value like this

  success: work (resp.first); alerts (Resp.last); Warning (resp.address);});    

Comments