Fetch MySQL Data and display it in text fields using PHP

Поделиться
HTML-код
  • Опубликовано: 28 сен 2024
  • Here we create a PHP page which consists of dropdown list and text fields. We fill dropdown list with primary key and on selecting particular id, we display the record in the text field, using simple AJAX query and JSON data.
    The link for updating the records:
    • Edit and Update MySQL ...

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

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

    Greetings to you your highness, am an amateur in php and am trying to build a site where one can select an option from a dropdown-list, I have managed to load from MYSQL data-table onto the selection list, every option on the list has additional information in the data-table so when the user choose an option the other info should display in the text filled and label before submission.
    My problem is, the details are not displaying on text input nor the label. I used Ajax to send to html, I have tried every possible way that I could. The confusing part is, when i was loading from the database onto the select dropdown-list sometimes the language is difficult to understand when some codes work at some pages and same code won't work at some. I have watch tutorials that did the same thing but when I try mine give error, " Notice: Undefined variable: rows in"----"Notice: Trying to access array offset on value of type null in".

  • @TashiDrukpa-l8l
    @TashiDrukpa-l8l Год назад

    hi sir, i followed same steps but i didnot get result, data is coming in the text field as undefined, please help me very urgent

  • @jeromeordonez5709
    @jeromeordonez5709 5 месяцев назад

    helo good day what if search by employee name not to ID

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

    How are you using echo when nothing is getting diisplayed on your brwoser?? it worked for me but the json file is getting displayed in the browser. Can you help me man?

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

    Thanks sir it’s very useful video

  • @cristianoarlindodasilva2007
    @cristianoarlindodasilva2007 8 месяцев назад

    Olá tem o código e o banco de dados para baixar

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

    Sir source code if you add in the description it will be much more effective

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

    ty so much bro
    this is what i want

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

    The source code pls

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

    Please share source code?

  • @opefaleye
    @opefaleye 9 месяцев назад

    Thanks for this Raj, but what if the records are so much up to 2000 records, I can't search one after the other...I hope you get me.

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

    Please would like to know how you were able to use Mysql instead of xampp in step by step

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

    The code is not working for me, can someone please help

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

    can i have your source code

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

    hi good can you do it on a drop down menu

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

    Codes pls

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

    Source code please 🙏

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

    bro need source code

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

    Thankyou so much!

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

    code pls

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

    thanks

  • @John-qt6qk
    @John-qt6qk Год назад

    Gracias

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

    Its just amazing
    Help me A Lot