...

View Full Version : Getting values from a database



vysh
12-08-2008, 06:23 PM
Hi All,

I have a button in my HTML. On clicking the button, I need to retrieve some data from the database and display it in the list in the HTML. How do I do it?

Any help?

Philip M
12-08-2008, 07:03 PM
Ajax.

itsallkizza
12-08-2008, 11:21 PM
As Philip tongue-in-cheek suggested, you'll want to google AJAX and check out some tutorials.

In specific you'll probably want to use the Javascript XMLHttpRequest object to ask a server-side API (I suggest written in PHP and MySQL) to return your database data.

Google tutorials for these:
Javascript XMLHttpRequest
PHP and MySQL

vysh
12-09-2008, 01:19 PM
Thanks itsallkizza and Philip. I will start working on AJAX to fulfill the requirement given to me



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum