how to use sharedpreferences

Asked

Viewed 44 times

0

Good afternoon can anyone give me an example of how to create sharedpreferences... I’m in a bad situation where .. i validated the user and password on the server using php via webservice and after the validation I need to show the user their registered companies.... but when I perform SELECT via web service again returning a json. it returns to me everything that has in the database follows the example.

$result = mysql_query( "SELECT UC, Instalacao, Nome_Logo FROM Tab_UC ") or die('Could not query');

But I need this SELECT to return only the UC, Installation and Username of the logged-in user and not all registered users... I need an example to see how it works.

  • Hello @Ortolano would be interesting if you take a tour of the site to know a little more about Stackoverflow. The following:http://answall.com/tour

  • 1

    Your problem is that you do not filter the data to be only logged in user. You have to select by filtering by id, name, email or anything else from the logged in user.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.