Reading data from MySQL database, using PHP, I get the following (using the http request in Corona) data from the table: [[“Alex”,35],[“John”,28]]. Unfortunately it comes as string (so I have to read myTable[1]), and I cannot get the reality (in this example, 2 records, with 2 fields each).
I tried the JSON.lua but the only thing it is doing is something like [""["…
What is the best way to get the results from my PHP script as a Lua array/table, instead the simple text? If someone is kind enough to check the returning from my php script, just try it at http://www.ppgplaces.com/getPilots.php
thanks a lot, Alex [import]uid: 4883 topic_id: 2584 reply_id: 302584[/import]