PHP Tutorials: jQuery: Get Data from MySQL Database without Refreshing

Поделиться
HTML-код
  • Опубликовано: 13 июл 2024
  • Want more? Explore the library at www.codecourse.com/lessons
    Official site
    www.codecourse.com
    Twitter
    / teamcodecourse

Комментарии • 223

  • @benmontoya428
    @benmontoya428 9 лет назад +7

    I've been watching your tutorials along with TheNewBoston's tutorials and I have to say you two are possibly the greatest teachers ever when it comes to programming. You guys are very descriptive and organized, and it's really easy to keep along and understand everything.
    Thank you.

  • @karlpokus
    @karlpokus 11 лет назад +1

    I love that you start off your tuts with the result. Should really be a best practise. Kudos!

  • @LeviMr77
    @LeviMr77 9 лет назад

    Holy mother of god! Just what I needed, I built the interbase version instantly as I was watching your video. Respect +++

  •  10 лет назад

    Thank you! I had a problem, when i watched half of this tutorial i got the explanation!

  • @SuperVegan1
    @SuperVegan1 9 лет назад +5

    Very nice, no excess information and I understood it even though I've never done any php, thank you.

    • @codecourse
      @codecourse  9 лет назад +1

      That's great to hear! Glad you found it helpful.

    • @proxdegracia6788
      @proxdegracia6788 9 лет назад +1

      ***** sir gud am, how to make the display in table form

  • @VigilianceAurelious
    @VigilianceAurelious 12 лет назад

    This is what I've really need on my thesis project! Thanks Alex! :D

  • @manualvarado2212
    @manualvarado2212 7 лет назад

    Thank you! This wasn't directly what i was attempting to do, but this helped me to understand .ajax and .get/.post. Really really thank you.

  • @soumyadipsaha2952
    @soumyadipsaha2952 8 лет назад

    you've helped me a lot! Thank you for the awesome tutorial

  • @timbodude2009
    @timbodude2009 7 лет назад

    Exactly what I was looking for. Thanks

  • @violinov
    @violinov 11 лет назад

    Your tutorials are f*****g excellent man. Good job!

  • @DorrellWilson
    @DorrellWilson 8 лет назад +2

    I've been watching a lot of your videos, you're an excellent teacher.

  • @pagework60
    @pagework60 11 лет назад

    Thanks I love all your tutorials.

  • @IbrahimIb
    @IbrahimIb 9 лет назад +1

    This is really great thank you.

  • @xrandomteenx
    @xrandomteenx 11 лет назад

    GOD i love this guy! He makes the awesome-est tutorials... i've learned a lot from you ALex! :D

  • @thesickbeat
    @thesickbeat 12 лет назад

    Thank you for this. I'm not interested in ajax but this definitely helped me out ALOT with my school assignments.

  • @SuperMegaStyle
    @SuperMegaStyle 8 лет назад

    Nice tutorial! Thank youCodesource

  • @mitagavit
    @mitagavit 9 лет назад

    Thank you for the tutorial... was a great help

  • @khasanasari9568
    @khasanasari9568 9 лет назад

    thanks for the tutorial, it's work 100%

  • @Spad223
    @Spad223 3 года назад

    Amazing tutorial, thank you!

  • @nimcloudi
    @nimcloudi 8 лет назад

    thank you, you helped me sort things out a lot. !! ill sub and like

  • @BassemFouad
    @BassemFouad 7 лет назад

    You are great, many thanks

  • @CageyLastToKnow
    @CageyLastToKnow 9 лет назад

    Many thanks for you help, what i wanted to do works now thanks to you :D

  • @HenriqueVanKlaveren
    @HenriqueVanKlaveren 8 лет назад

    Very nice. Thanks!

  • @GhostInTheShell3000
    @GhostInTheShell3000 12 лет назад

    BRILLIANT! THANKS!

  • @graham8377
    @graham8377 8 лет назад

    Excellent video good job thank you.

  • @anandpari24
    @anandpari24 10 лет назад

    Amazing titorial, I love it.... Keep it up

  • @UmairAbbasi1
    @UmairAbbasi1 11 лет назад

    that was awesome, cheers mate...

  • @hieronymus1981
    @hieronymus1981 11 лет назад

    I always end up with a youtube video of this dude. I wonder.... Again cool stuff mate. !

  • @Baiev
    @Baiev 4 года назад

    Perfect explanation...

  • @LeomarOsorio
    @LeomarOsorio 9 лет назад

    Great tutorial. Thanks. :)

  • @websachi
    @websachi 8 лет назад

    This is very useful video tutorial, thanks so much

  • @danishjamil7677
    @danishjamil7677 9 лет назад

    nice tutorial dude... but mysql to mysqli conversion is lil confusing now but yet nice video. keep on pumping out your tutorial contents, very informative and helpful for our career. ;)

  • @PCKlickNetTV
    @PCKlickNetTV 8 лет назад

    Thanks man!

  • @mohammedgannouni4075
    @mohammedgannouni4075 8 лет назад

    Thank you alex

  • @CreativeDirektor1982
    @CreativeDirektor1982 11 лет назад

    Very Good tutorial, very sample tnx!!!

  • @talhakhan4608
    @talhakhan4608 9 лет назад

    its soo use full thanks allot .

  • @aziaja
    @aziaja 12 лет назад

    good point and very realistic :)

  • @manilakid3
    @manilakid3 9 лет назад

    Great tutorial. Keep it up.

  • @chriswillier5075
    @chriswillier5075 8 лет назад

    Excellent Thanks

  • @Patmanduu
    @Patmanduu 10 лет назад +1

    Wow. Thanks for that. I WAS using single quotes in the query. Haven't touched the grave accents button in years (since high school French class).

  • @mauriciorodrigues8296
    @mauriciorodrigues8296 7 лет назад

    Thank you so much !!!!

  • @geeksicle314
    @geeksicle314 8 лет назад

    The form would always refresh after using $_POST['submit'] in an if statement with the button. Now I see how to do this, because often times, the form submits multiple times and I get like 12 entires of the same information in my SQL Database! Thank you :)

  • @pitocms
    @pitocms 9 лет назад +8

    Awesome tutorial.

  • @TylerReaves
    @TylerReaves 10 лет назад

    Thank You!

  • @DomutaMarcel
    @DomutaMarcel 11 лет назад

    An verry good tutorial for an begginer like me. Thanks :)

  • @cristianpruebas3819
    @cristianpruebas3819 9 лет назад

    Thank's very usefull ! best regards !

  • @memres217
    @memres217 11 лет назад

    Great Tutorial

  • @guillermos
    @guillermos 10 лет назад

    Thanks, it helped me to do something at my work xD

  • @santunu23
    @santunu23 9 лет назад

    Excellent tutorial neat and clean.I need a suggestion can i grab the fetch data into a input tag?

  • @dashing3201
    @dashing3201 11 лет назад

    very good tutorial. thanks

  • @user-gn4zz5in7v
    @user-gn4zz5in7v 6 лет назад

    Хороший урок, очень помогли. Спасибо!

  • @TheMrChugger
    @TheMrChugger 11 лет назад

    Chorley... What a beautiful part of the world!

  • @relife476
    @relife476 4 года назад

    thank you to much

  • @lestevesl
    @lestevesl 10 месяцев назад

    Still useful after 11 years.

  • @pranavvij6921
    @pranavvij6921 10 лет назад

    Thank you sir

  • @betinafarias
    @betinafarias 8 лет назад

    Thanks.

  • @Sayied
    @Sayied 11 лет назад

    Its done thanx a lot :D :D :D

  • @rodrigomacedo9996
    @rodrigomacedo9996 10 лет назад

    nice1 good job

  • @ralmarri12
    @ralmarri12 9 лет назад

    Awesome

  • @sergeyshishkin82
    @sergeyshishkin82 10 лет назад

    Hello
    It is good exsample for begginer
    Thanks

  • @joachimsome7228
    @joachimsome7228 9 лет назад

    Great tutorial, it worked for me. I am a newbie and want to know how we can apply this to a form tag with different labels?

  • @cowietan3096
    @cowietan3096 8 лет назад

    Appreciate this vid! Very awesome.
    Can someone explain what I should do if I were to get an image file name from the MySQL table and display the image?
    Would it be an alteration in global.js :
    $('div#name-data').text(data);
    Or should the change happen in name.php?

  • @bawbawsumhpa
    @bawbawsumhpa 9 лет назад +1

    If I set input type="submit" in html page, data from the method $('div#name-data').text(data) just flash a millisecond and disappear. But this is not the case if I set the input type to "button" instead of "submit". But in your video, even though you set the input type to "submit", it seems to be working. Why is it that?

  • @cvilee
    @cvilee 12 лет назад

    Hey alex, nice tut but how would you get back multiple records and store them into table perhaps? Yea i know theres a lot of completed grids waiting just to be implemented, but i just wondering is there any way for us to make from scrach complete CRUD grid with jquery and ajax. Thanks alot for everything you've done so far

  • @RQCKQN182
    @RQCKQN182 9 лет назад

    Awesome video! Thank you!
    Please help me to alter my output so that it is processed. At the moment my output is just:
    31John.Smith
    How do I get it to output a proper row on a table? Does it relate to global.js line 5 at 9:38?

  • @sairajdas6692
    @sairajdas6692 5 лет назад +1

    Is there any video preceding it? I can't figure out how the code works.

  • @sesostriess
    @sesostriess 8 лет назад

    thx :-)

  • @renesteneker9751
    @renesteneker9751 9 лет назад

    Very nice guide. Any suggestions on how to implement such thing in laravel?

  • @Fisheriscool
    @Fisheriscool 8 лет назад

    Cheers I use mysqli instead but still worked sort of

  • @obsdark
    @obsdark 10 лет назад

    Excelent work
    But i have a question.., you see, i'm trying to do this with a PDO syntax, but in PDO you can't select the specific table of a db, so, how can i do it to AJAX search in the right table the information what i need?
    Thanks in advance

  • @govinda678
    @govinda678 11 лет назад

    Hi. In the previous version of this video, you used fadeIn() on the result div. It was pretty cool.
    How would you implement fadeIn() in your global.js file?
    Because this line does not work:
    $('#result').text(data).fadeIn();

  • @InnovatorAlvin
    @InnovatorAlvin 8 лет назад +1

    the database connection and retrieval don't appear to apply anymore as i received a kinda obselute message. I got it working by using mysqli_connect, mysqli_query, and mysqli_fetch_assoc. I'm on WAMP server.

  • @godtaty1
    @godtaty1 12 лет назад

    Yes you could

  • @Joshua_SZ
    @Joshua_SZ 11 лет назад

    The tracking is very cool when executed, what's that? Firefox?

  • @PhrostyGaming
    @PhrostyGaming 5 лет назад

    Update with use of PDO. mysql/mysqli are obsolete. Otherwise, great tutorial.

  • @a55a51n2
    @a55a51n2 11 лет назад

    followed your tutorial and it works great. how do i make it so that if i select a value from a select element it echoes the value in a text element of a form.?

  • @meineroteBlume
    @meineroteBlume 9 лет назад

    Very nice tutorial! Simply to understand. At the end of your video you post the mysql_result as an echo. Is it possible to post that over an $_POST to the HTML Page? I want to make a slider that always load the value of the database on the start.
    Sorry if my English is not quite right :)
    Greetings from Germany

  • @22mawdizzle22
    @22mawdizzle22 12 лет назад

    Alex, how would you fire the same type of AJAX to PHP reaction using Google Maps API V3? There is a listener event on a map marker that I can set to do something when the user clicks. So I want to do the exact same thing you did, but from the map. i.e. the user clicks the marker and my javascript sends my PHP the id of the marker clicked.

  • @derk6831
    @derk6831 7 лет назад

    Simple and awesome tutorial, I have done this similar tutorial using just php and MySQL, I did not include ajax.. Is it secure that way? but the way I don't have lots experience..

  • @gabrieletim4418
    @gabrieletim4418 8 лет назад +1

    How can this be integrated with a select function? Like

  • @Asimov16
    @Asimov16 10 лет назад

    Very good tutorial and I got it to work. Even upgraded it to MYSQLi too, but I have a different problem now. I want to out the values returned into a table with input forms which I have done with $('#partnumber').val(data); but I want to return more than one set of data eg part number and location. I tried two echos $row = $result->fetch_assoc();
    echo $row['PartNumber'];
    echo $row['Location'];
    but this returns it together. is there any way to return separate data? Hope I am clear

  • @samuelexaud9445
    @samuelexaud9445 7 лет назад

    i like that

  • @ovxvii
    @ovxvii 6 лет назад

    hi this is alex from phpacademy

  • @chrisread5445
    @chrisread5445 8 лет назад

    This is a great video; watched it last week! Right now I'm trying to find how to populate a jstree with data from my MySQL database maybe using JSON (or maybe not) but Google has brought me back here! Does anyone know a video that will help me with what I want?

  • @user-ir2fu4cx6p
    @user-ir2fu4cx6p 3 года назад

    Fun fact that I'm moving slowly from PHP and web-developing to C/C++ and desktop developing , looks like I wasn't able to make any progress with it , I craving to my old days and my first language I learn C .

  • @amitasthana
    @amitasthana 11 лет назад

    Hey alex, i want to do the same thing, but i dont want to use the submit type button, i want it should give result as soon as i type in the box, maybe on page or a alert box, i know it can be done...., do you have some tutorial to explain this?

  • @shurui91
    @shurui91 9 лет назад

    what if there is more than one Alex in the database with different locations? what part of the code needs to be changed?

  • @therc23
    @therc23 6 лет назад

    Hi
    Nice tutorial
    Can you please help me with this? How to create divs automatically and populate them with records from your database

  • @karlpokus
    @karlpokus 11 лет назад

    would return (JSON_encoded obj) work as well as echo?

  • @TranceSerbia
    @TranceSerbia 9 лет назад

    What if you do not want to echo out data in you php file ? Can you still send it back to jquery post method and use it ?

  • @neilharveyjaloog9341
    @neilharveyjaloog9341 11 лет назад

    nice tutorial man !. , btw how to get 2 or more variables from database ? ex. i want to display age and location of the name i inputed in textbox . if i have age in database that is.

  • @ilinadiakarim9071
    @ilinadiakarim9071 7 лет назад +1

    I want to do like this but without button. I create a form. If I insert id from table product in text box, all information from table product will show up automatically in textbox product name, textbox product price. Then I can add more than one product in that form without submit it more than one time.

    • @derk6831
      @derk6831 7 лет назад

      you can use onkeyup or onkeypress....... if you want to do without clicking a button...

  • @jinixvomitorium
    @jinixvomitorium 11 лет назад

    This is very helpful! also I am wondering how to transfer a $_GET from an index page to the jquery page that passes it to the PHP file that processes the query.

  • @joshuadelfin7495
    @joshuadelfin7495 9 лет назад

    sir can you upload a video... when the user type a keyword it will display automatically searched data into table format

  • @cyanideneko8795
    @cyanideneko8795 3 года назад

    Is there a C# version for this you can recommend? 🥺🥺🥺

  • @MrGeekYass
    @MrGeekYass 9 лет назад

    is there a Video on how to do the same thing but in Chat System without refreesh using Jquery ?

  • @proxdegracia6788
    @proxdegracia6788 9 лет назад

    sir pls help, how to add another display aside location, i have table in my database named position and i want to display it in my page.thank you pls answer

  • @schumibr1
    @schumibr1 12 лет назад

    Can you make something like a loading image?
    I mean after I press the grab button a .gif will be displayed until de actual data is shown from the sql?

  • @DanKardell
    @DanKardell 8 лет назад +2

    Great job. I wasn't able to get my JQUERY to work unless I started it off with
    $(document).ready(function(){
    $('input#name-submit').on('click', function() {

    • @w4rri0r0906
      @w4rri0r0906 7 лет назад

      Savior! Thank you. :D

    • @svenbtb
      @svenbtb 6 лет назад

      i thought it was weird that he ommitted that. Yeah, ANY JQuery code should be wrapped in $(document).ready(function() { //code here });

  • @ZsolTuber
    @ZsolTuber 10 лет назад

    Unfortunately AJAX+PHP is NOT working, when we use PHP classes :(
    Why not?