Hi,
So far I haven't seen much content for making Gideros apps go online.
I've seen a tutorial with LuaSocket, but wasn't able to follow it through, and I think it was only for local networks, so pretty pointless for something like online rank lists.
I've recently built a lot with php at work, so I know how to do stuff with a MySQL database. Unfortunately, SQL is not supported natively by Lua or Gideros (except SQLite, which is local?).
On the Google, I got a hint to look at LuaSQL-MySQL, but the instructions on how to install it are too damn hard. It's like they force you to use Linux and it seems you even have to compile things at some point. Having to follow 20+ steps that involve manually changing system files kind of ruins the point of using a "1-click-and-you're-set" solution like Gideros.
I'm not really here to rant. Can someone give me directions on how to possibly make online rank lists happen with Gideros? (idiotproof please). Also I think, if this is possible, online stored user saves are not that far away.
Greetings
Comments
Take the values by urlloader from a php web site via webservice. (in json format will be better)
And then parse json in your program.
Likes: Holonist
I have two variables, username and password. The containing element is a Gideros object called 'form' (just so you know what "self" is referring to)
from:
http://docs.giderosmobile.com/reference/gideros/UrlLoader/new#UrlLoader.new
you should do something like:
http://appcodingeasy.com/Mobile-Backend/Score-REST-API-on-PHP5-and-MySQL
But for now, I'm getting
Why don't you get this error, where you don't close the url string?
your url should be in "http://svr05/gid/register.php"
no " stuff needed
It worked with your example, but I'm not yet satisfied with the "style".
When I try hgvyas123's solution, my $_POST stays completely empty...
I think the json format is also how html form input is normally sent?Last sentence is apparently false. Does ajax convert json to a string like val1=a&val2=b&val3=c etc? I thought it just sends it as is
sorry for changing my attribute names all the time
in ajax, you usually provide not json string, but json object, which internally is converted to query string