i'm trying to do something "different" with my login page, but i think i'm doing somthing wrong or not understanding the process.
Right now, my users table are like:
user_id, username, password, profile_picture, first_name, last_name
What i want is, when you click in the input text (on focus) you start typing your username, once you click out, the ajax will check this user and return at the top the profile picture for that account.
Here it's an example for this but using gravatars: Example Here
Can someone help me to understand how this request can be done with ajax and php?
Thanks!