Talk:Tutorials webOS Getting JSON From An External MySQL Database

I would HIGHLY suggest using this example as an example alone. You NEVER want to create a direct link to your database. Instead, you want to abstract it.

Instead of accessing a table called users, you'd probably want to create a method for logging in, permissions, etc so no one can just view the contents of an entire table.

In fact, I feel that this tutorial is quite negligent as it doesn't teach good practice at all.

Remember, keep all logic that can retrieve data on the server only and never anywhere else. If you want users, you should "request" the users from the server and the server should determine what kind of data you're allowed to get.

I have modified the previous "What's Next" step. I would suggest that someone, at some point, revises the example to use better coding practices rather than having a note saying "btw, this is bad, don't do what I just showed you".