Jump to content

Ajax Mysql.


phpSensei

Recommended Posts

I am currently learning ajax, and i need to know something.

 

Can ajax connect to a mysql database, get the info, and put in vars without refreshing the page? Lets say i made a login system, and i dont want to refresh the page, just get all the info, check against the POST vars and show the finishing results without refreshing the page, also register sessions or cookies, is that possible?

Link to comment
Share on other sites

 

You would create a PHP page to do all this and then you would have your PHP page to echo out whatever you wanted to be returned to your responseText (the content that you want to display with AJAX in your page); if the member login and password is correct.

 

Google "AJAX User Login" and you should be able to see some examples of how to do this.

 

- Good Luck ;)

Link to comment
Share on other sites

  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.