Connection To Mysql with JSONParse and PHP

How to make connection with json in lua?

Maybe this will get you started:

http://omnigeek.robmiracle.com/2012/04/15/using-corona-sdk-with-rest-api-services/

Rob

Maybe this will get you started:

http://omnigeek.robmiracle.com/2012/04/15/using-corona-sdk-with-rest-api-services/

Rob

(I did try posting this on the Omnigeek site but it blew up on the post, and then said it was duplicate)

Per the omnigeek article…

OK, so I hate to post on a old thread, and I feel like a total doorknob, but…

I’m tech savvy, but I just can’t figure this one out. The fact that nobody else has mentioned it makes be wonder too!   Anyway, I get this error from the PHP code…

RESPONSE: <br /><b>Parse error</b>:  syntax error, unexpected T_VARIABLE in <b>/home…blah blah

I ran the PHP code through 2 PHP validity checkers, and it gives me the same error too.

(This is the verbatim code as well as one I updated the define statements on)

Thoughts?

That is a very old post. It uses MySQL in a way that’s been deprecated and PHP has changed a lot from the 5.2 that was based on to PHP 7? which I think is what’s out today.

While the PHP is likely out of date, the Corona side and the idea of JSON should still be valid.

Rob

(I did try posting this on the Omnigeek site but it blew up on the post, and then said it was duplicate)

Per the omnigeek article…

OK, so I hate to post on a old thread, and I feel like a total doorknob, but…

I’m tech savvy, but I just can’t figure this one out. The fact that nobody else has mentioned it makes be wonder too!   Anyway, I get this error from the PHP code…

RESPONSE: <br /><b>Parse error</b>:  syntax error, unexpected T_VARIABLE in <b>/home…blah blah

I ran the PHP code through 2 PHP validity checkers, and it gives me the same error too.

(This is the verbatim code as well as one I updated the define statements on)

Thoughts?

That is a very old post. It uses MySQL in a way that’s been deprecated and PHP has changed a lot from the 5.2 that was based on to PHP 7? which I think is what’s out today.

While the PHP is likely out of date, the Corona side and the idea of JSON should still be valid.

Rob