|
|
|
|
Title: PHP Tutorials: jQuery: Get data from MySQL Database without refreshing
Added: Jul 23, 2010
Author: phpacademy
Duration: 32:26
Description:
Outputs the age of a specified name typed in a form, without a page refresh. It's easy, using jQuery! Great for beginners to AJAX style methods.Official websitehttp://phpacademy.orgSupport Forumhttp://phpacademy.org/forumFollow us on Twitter!http://twitter.com/phpacademy
Related Videos:
Videos related to 'PHP Tutorials: jQuery: Get data from MySQL Database without refreshing'
Channel: Education
Tags: php ajax jquery tutorial tutorials help css html refresh refreshing div divs without
php ajax jquery tutorial tutorials help css html refresh refreshing div divs without
Youtube Comments: 284
pannaperis Says:
Apr 20, 2012 - very helpful ... thanks
capechronicler Says:
Apr 22, 2012 - This code works great as a stand alone, but I had problems with it when it is incorporated into a compliant HTML file with a DOCTYPE tag (remove the doctype and it works fine).The problem is with a section of the script$.post('check.php', { username: form.username.value },if you replace it with $.post('check.php', { username: $(this).val() },it works fine with a DOCTYPE tag at the beginning of the file.This makes your files compliant!
empirejb Says:
Apr 22, 2012 - BRILLIANT! Tutorial was one of the best Ive found online, very well explained and easy too follow. Many thanks for your work.
XicoXperto Says:
Apr 24, 2012 - Hi there mate, Is it possible to return the output for usage of other function? As text? my idea is to use that to fetch the info for the dropdown lists.Thanks, and by the way, great tutorial!
mtptow Says:
Apr 30, 2012 - great works ,I have a problem !! this script doesnt work in my Mozilla firefox !! someone can help plz
ebayisajoke Says:
May 12, 2012 - typing too fast.. this is not a tutorial. My buttons wont appear in IE, firefox or chrome..
Lesismorefl56 Says:
May 13, 2012 - Alex, this tut was fantastic. It's VERY literal (which helped me find my bug...) Even though I've been using JS and Jquery for some time, you've saved me! I was struggling with AJAX (unsuccessfully) but this fetched my MYSL data perfectly. Awesome MATE!!!! Cheers!
Lesismorefl56 Says:
May 13, 2012 - I was able to make this work in ALL the browers, including Firefox, IE, Chrome and Safari. You should recheck all your code. Sometimes even a single misplaced semi-colon can screw things up. It's often helpful to have another coder look at your actual code. Repeat Alex's tutorial EXACTLY until you have a it working. I know that it does work, because I've done it!
ebayisajoke Says:
May 13, 2012 - I only need one thing from the data base shown on the page, he's doing 2. so all the $age is just removed right?
alekloock Says:
May 14, 2012 - IMPORTANThow can I get data from a database that consists of more than one table???
WhoIsArturo Says:
May 14, 2012 - doesn't work in firefox
ufowam Says:
May 19, 2012 - I personally much prefer his pace rather than someone that will go slowly, explain everything everytime and bore the hell out of me :pdepends on people I guess
ebayisajoke Says:
May 19, 2012 - doesn't work at all for me..
ebayisajoke Says:
May 19, 2012 - when I hit enter in the input the page refreshed and appears to be grabbing info from data base,but the button when pressed won't do anything.
ebayisajoke Says:
May 20, 2012 - syntax error, unexpected T_VARIABLE in line 5
89sarsar Says:
May 21, 2012 - thank you !!! there was a bug in my code , it didn't work cuz i named the form "name" instead of "form". so ppl check yours carefully don't give up
mezigpo Says:
May 21, 2012 - when hit enter after typing something in the input it refreshes the page and displays nothing. But when i hit the get button it retrieves the data from the database. WEIRD
kellepaca1 Says:
May 21, 2012 - thanks a lot ;)
Gaspare Civiero Says:
May 21, 2012 - Fantastic tutorial... Thank you very much!!!
MrDjZarko Says:
May 21, 2012 - this is outdated :( but good tutorial anyway
kasunpancha Says:
May 25, 2012 - Doesn't work in firefox. But it works in Crome & IE. Any reason for that?
ArturoN Says:
May 25, 2012 - Superb brother!!!
ArturoN Says:
May 25, 2012 - why is outdated? sorry im just going to start a similar project, what also should i look for???
yoeriboven Says:
May 26, 2012 - Unfortunately, it doesn't work here.












MrKingweb Says:
Apr 17, 2012 - firefox might not able to get data from directly name of the form.you may try.....{name:document.form.name.value},.....or give a id to the input box say #username and pass the value of it like.....{name:$("#username").val()},.....