[eluser]boltsabre[/eluser]
Quote:$query = $this->db->query("SELECT * FROM user WHERE id = '$userID'");
Do you really need to get all the data for that row, it's very rare that you do? (I imagine your table rows contains dates such as "date_created", "last_update", "date_deleted", etc, and other stuff that you really don't need to access).
It's rare that you ever need to access all the data from a row, and when you do you are adding extra database load and processing load on your server, get into the habit of only selecting what you need inside that function, which I'm guessing by the name of your function is just their password, so SELECT password...., not SELECT *