Talk:Tutorials webOS Getting JSON From An External MySQL Database

From WebOS Internals
Revision as of 04:47, 31 October 2009 by Anno (talk | contribs)
Jump to navigation Jump to search

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.