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
https://forums.phpfreaks.com/topic/91769-ajax-mysql/
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
https://forums.phpfreaks.com/topic/91769-ajax-mysql/#findComment-470016
Share on other sites

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.