How to return JSON Data from PHP Script using Ajax Jquery

Поделиться
HTML-код
  • Опубликовано: 16 июн 2017
  • This video cover how received JSON data from PHP script by using Ajax request and how to display JSON data on web page by using JQuery. Ajax get JSON from PHP is very simple but widely used concept in web development. Here Ajax get JSON data from PHP.
    For Source code and online demo - www.webslesson.info/2017/06/jq...

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

  • @dinith_rukshan
    @dinith_rukshan 5 лет назад +4

    Awesome tutorial. Everything is clear. small code. Easy and simple.

  • @olamas92
    @olamas92 2 года назад +1

    I know this video is a while back but it made my day today... 😍 I have been searching 🔎 all day trying to get a tutorial that suits what I'm doing and couldn't get, I nearly gave up. Till I saw this one...
    Thanks a lot man.. U made my day🙏🙏🙏

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

    Very Good video . This video contain integral information about many topic like ajax, jquery, json and PHP. Thanks for uploading.

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

      Thank you Amit Patel, have a nice day!

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

    Fantastic tutorial FRIEND. Helped me a ton!

  • @nareshahirwar7406
    @nareshahirwar7406 6 лет назад +2

    Good And Simple explanation..
    Great

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

    your tutorials are awesome

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

    I only needed to know how to use AJAX on php scripts, but what you showed me was exactly what I wanted to create, thanks :)

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

      @Keith Brixton fuck off, don't reply to a year old comment of me with a fucking bot acount

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

    Congratulations on this job, it will help me a lot. God bless you.

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

    Thank you. This one works out of some videos here on youtube I just can seem to make it work.

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

    love this....thanks for the tutorial.

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

    that was helpful thank you

  • @MonirulIslam-sg7oh
    @MonirulIslam-sg7oh 4 года назад

    Nice. First time with ajax

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

    Excellent example. Wil use it. Can you perhaps do the same tutorial but from a Json file also please. There is nothing on the internet like that

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

    kamal sir

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

    #WEBSLESSION, here you show to retrieve data from one select box, where to add code to make 2 or more select box to fetech data?

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

    Tried it out, when I changed the variables, input names, id's and queries according to my project, the edit dialog popped up empty, everything else went well, just the edit dialog. What could go wrong?

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

    Very Good video

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

    how to make query with where ? "select * from employee where id=" etc.. ?

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

    Thanks so mush sir

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

    If the response will multiple then how to display on the website. I mean if JSON output is coming more then one row the how to display on the web page? I know I have to use foreach but still not working

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

    well done

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

    i love you brother

  • @mhamzababa1127
    @mhamzababa1127 2 года назад

    very good

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

    Man ur voice is savage

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

    This for condition if can I set 1 more condition else ?

  • @fadhilh3931
    @fadhilh3931 2 года назад

    Can we use ajax to actually fetch the employees too? So we don't have to embed php in html, so everything use ajax

  • @f450fpv7
    @f450fpv7 Месяц назад

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

    How i can fetch the data from json api or json file and display the data in html form in html page & after submission of data display like json data display in console.

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

    how can i return data in select option of html form ?

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

    thx bro

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

    if we want to show all data in table then how can we do.

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

    Hey Can You Help me To Configure
    My API To Order Tracking ...in curl php

  • @g.i.7productions217
    @g.i.7productions217 Год назад

    I have a problem, ajax keeps returning details for only the first PHP while loop result, no matter the name I click. Please help.

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

    How do I display the search results on a new page...please help

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

    can you tell me how to fetch more than one data i mean return as multiple array data

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

    Hello, I was trying to convert msqli into PDO in this example, what would be the equivalent of the code below in pdo?
    while($row = mysqli_fetch_array($result))
    {
    $data["name"] = $row["name"]; $data["address"] = $row["address"]; $data["gender"] = $row["gender"]; $data["designation"] = $row["designation"]; $data["age"] = $row["age"];}

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

      this is from fetch.php file I tried
      while($row = $stmt->fetchAll()){...}
      which is not working

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

      ok I think I got it working here is the working code
      while($row = $stmt->fetch()){...} did the trick
      goo.gl/1kGHN4 copy paste the fetch.php and try it in local host.

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

      fetchAll actually works all you need to do is tell the browser that you are getting an array by using the is_array

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

    how can i do that using JSP?

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

    I write same code but ajax is not working why

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

    i am a freshman i am not good at code, could you change this video to laravel . (how to return json data from laravel using Ajax Jquery )

  • @shariqali4348
    @shariqali4348 5 лет назад +2

    how to fetch more than one data i mean return as multiple data without refreshing page

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

    thx

  • @--INDIAN--TRADER
    @--INDIAN--TRADER 2 года назад

    GRT WORK DO UN HAVE WEB PUSH NOTIFICATION WITH PHP FOR SPECIFIC CATEGORY WISE SENDING TO GROUP OF USER .. ANY GUIDE WILL BE GRT HELP

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

    What is the $_POST["id"] in the fetch.php for? i can't find it, please help!

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

      i think you control there if ID od employee was posted

  • @jayakrishnanbalakrishnan3427
    @jayakrishnanbalakrishnan3427 Год назад

    Nice, still useful, except for the text 2 speech voice

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

    Salut je besoin d'aide svp
    J'ai un fichier json crypté vous pouvez me l'aide pour decrypte???

  • @joshwhiddett8331
    @joshwhiddett8331 4 года назад +1

    Couldnt get past the voice