/    Sign up×
Community /Pin to ProfileBookmark

Getting values from a database

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?

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@KorDec 08.2008 — you may perform an AJAX request to a server-side application (php, asp...)
Copy linkTweet thisAlerts:
@vaishnaviauthorDec 08.2008 — you may perform an AJAX request to a server-side application (php, asp...)[/QUOTE]

I am sorry Kor. I am totally new to AJAX. I have no idea about AJAX. Can you please help me out in sending some sample codes or giving some simple basic examples to perform the action which i want to?

Is there any other way to get values from the database?
Copy linkTweet thisAlerts:
@skywalker2208Dec 08.2008 — I am sorry Kor. I am totally new to AJAX. I have no idea about AJAX. Can you please help me out in sending some sample codes or giving some simple basic examples to perform the action which i want to?[/QUOTE]

Take a look at w3schools. They have some examples.


Is there any other way to get values from the database?[/QUOTE]


The only other way would be to submit the page when the user clicks the button and then retrieve the info and reload the same page with the info retrieved from the database.
×

Success!

Help @vaishnavi spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...