Displaying records from a MySQL Database with PHP

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 190

  • @aidenperez8158
    @aidenperez8158 Рік тому +1

    you're an absolute beauty, ten years old and this video is still the best on youtube!

  • @anniechen8825
    @anniechen8825 9 років тому +3

    One of the clearest and most straightforward tutorials I have seen regarding this. Great job!

  • @alexanderschafer1174
    @alexanderschafer1174 8 років тому +4

    The table's headline's tag doesn't close correctly. You forgot the /

  • @Michael5029
    @Michael5029 9 років тому

    Very useful video, straight to the point and easy to understand code

  • @chamberecho3552
    @chamberecho3552 7 років тому +1

    first time I tried to connect to my db something went wrong. Among other things I had to give up. Today I could to it thanked to your awesome tutorial.

  • @abdifatahmoh
    @abdifatahmoh 5 років тому

    Thank you man, I have been struggling all night. You just saved me one piece of code.

  • @semabali2137
    @semabali2137 9 років тому

    Its Excellent...Keep Posting Such videos..

  • @deepakjindal2969
    @deepakjindal2969 9 років тому +12

    if anyone gets the error mysql_fetch_assoc() expects parameter 1 to be resource, object given in...
    replace while ($employee=mysql_fetch_assoc($records) with
    while ($employee = $records->fetch_assoc())

  • @enriqueavina6827
    @enriqueavina6827 9 років тому

    i've been looking for a tutorial that explains how to rach elements of my sql table. Thanks so much!

  • @Kolt461
    @Kolt461 9 років тому

    You sir, deserve a thousand likes!

  • @EtienoAsifamusicx
    @EtienoAsifamusicx 8 років тому

    thank you so very much fiki.. you did a great job... and my project has greatly benefitted from this..

  • @cherylspooner4484
    @cherylspooner4484 10 років тому

    Very explanatory. Thank you very much. I look forward to seeing more of your work.

  • @BKYADAV-jn3ry
    @BKYADAV-jn3ry 8 років тому

    Thanks. Very explanatory and straight to the point. Please i have
    created a login id page, how do i display the details on browser from mysql database?

  • @F4FIGHT
    @F4FIGHT 10 років тому

    Thanks, very very straight forward to follow.

  • @evananimates4192
    @evananimates4192 9 років тому

    I really liked your video. fantastic job and super helpful.

  • @xAiko88x
    @xAiko88x 9 років тому

    very good video tutorial! gives a very good understanding

  • @Nick-ik4kw
    @Nick-ik4kw 7 років тому

    Thank You! very simple and well-explained example. This is exactly what I needed.

  • @wenukabandara6164
    @wenukabandara6164 8 років тому

    Great! it works. But can you implement so that we can search a term and then display only those values.

  • @christopherirewa4005
    @christopherirewa4005 4 роки тому

    This videos are very nice. Wow!

  • @greggregory2265
    @greggregory2265 7 років тому

    Great turtorial!

  • @zareenremendies
    @zareenremendies 4 роки тому

    Thank you very much! You helped me alot

  • @rakshitha_bhaskar
    @rakshitha_bhaskar 8 років тому +8

    hey i followed your tutorial , getting the following error :-
    mysql_fetch_assoc() expects parameter 1 to be resource, boolean. What to do??

    • @IGotTheReset
      @IGotTheReset 8 років тому +2

      +dhanush gr This error means you did something wrong in your query. Check for single/double quotation marks. When I called my table with single quotations, I got this error too. I removed the quotations and the error was gone.
      Edit: you can also log the error after the result (in this video $records). Just type
      if (!$result){
      echo "error: ".mysql_error();
      }
      This will log it outside of the html, so it will probably be on the top of your page. You can also place it inside of your html code by adding the error message to a variable like so:
      if (!$result){
      $msg = ""

    • @rakshitha_bhaskar
      @rakshitha_bhaskar 8 років тому

      I Got The Reset Katarina Okay katarina , ill try that..

    • @paargavshanker4286
      @paargavshanker4286 5 років тому +1

      mysql is no more valid... Try using mysqli_fetch_assoc()

  • @ak4x6
    @ak4x6 8 років тому

    i am working on a project. And you helped me out. thanks!!!!

  • @LetTheWritersWrite
    @LetTheWritersWrite 9 років тому

    Also, by the way. The PDO class does this much more efficient. I recommend that over this technique. It's safer too.

  • @shaikhmanal
    @shaikhmanal 8 років тому

    Thank you very much ! You helped me alot ! I've been doing it since 3 days non - stop but this helped me ! THanks!

  • @STjosephchoir
    @STjosephchoir 9 років тому

    great explanation
    how can i manually input the query?
    like add a input text box and type the query on the page itself rather in the php code

  • @pjandres3354
    @pjandres3354 9 років тому

    thank you very much brother for this tutorial.

  • @kumaresan.t9919
    @kumaresan.t9919 10 років тому

    hai thanks you very much,its very usefull for my work

  • @juliusoirisha
    @juliusoirisha 8 років тому

    great explanation...

  • @oluchinwanolue4168
    @oluchinwanolue4168 10 років тому +3

    Thanks. Very explanatory and straight to the point. Please i have created a signup page, how do i save the details on mysql database?

    • @DevTalk
      @DevTalk  9 років тому

      I will soon be posting some videos to that effect, stay in touch.

    • @ITHowToAsap
      @ITHowToAsap 8 років тому +1

      +Aaron Esteban (Etsy SEO Talk) Yes, all you have to do is replace the database connection with a more secure option, but the code bellow it is still good to be used.

  • @brucelee1194
    @brucelee1194 5 років тому

    thank you mr. gobi

  • @bhuvanavignesh8468
    @bhuvanavignesh8468 9 років тому

    Good Tutorial... Thanks a lot...

  • @priyamd4759
    @priyamd4759 8 років тому

    Thanks, clear explanation. Liked and subscribed.

  • @sivaanand2123
    @sivaanand2123 6 років тому

    wowwww.... super
    thanks for the explanation

  • @MrAmirone
    @MrAmirone 11 років тому

    excellent video, been looking for this for months can't find it, how about inserting images from a database, or querying the informayion and the result display in db
    Thanks

    • @cherylspooner4484
      @cherylspooner4484 10 років тому

      He did display the results and the original database. The results showed at the end of the video.

  • @Jun0357
    @Jun0357 10 років тому

    thank you very much it really helped with my project

  • @Stl71
    @Stl71 10 років тому

    Great tutorial, thanks!

  • @cassiep6250
    @cassiep6250 9 років тому

    awesome video, thank you!

  • @Whitena19
    @Whitena19 9 років тому

    Great video, straight to the point, simple and easy to follow
    Thank you for the tutorial, would be nice to see a few more php tutorial
    Liked and subbed

  • @alnahash
    @alnahash 8 років тому

    Thanks, i works perfectly...

  • @shahvideos100
    @shahvideos100 9 років тому

    Thanks for your nice vid tutorials. How can we search query from a input box using form,?

  • @danieljosey7207
    @danieljosey7207 8 років тому

    Helped SO MUCH, thank you.

  • @nguyenloc7524
    @nguyenloc7524 8 років тому

    thank for your video. it is definitely understandable

  • @jhongjung6409
    @jhongjung6409 7 років тому

    thank you for this video, it helps me a lot

  • @ashraffarizal5589
    @ashraffarizal5589 7 років тому

    Thanks,it work..really helpful..

  • @patsound2002
    @patsound2002 8 років тому

    good video man,it helped me a lot

  • @webdevelopmentthebdit7898
    @webdevelopmentthebdit7898 5 років тому

    nice tutorial

  • @bennykimanibk
    @bennykimanibk 6 років тому

    Woow! This one just helped me..
    😊😊😊 thank you ✔✔✔ good job there..it will really help me

  • @jamesbrand44
    @jamesbrand44 9 років тому

    Nice tutorial, helped with a problem i was having :)

  • @sadafnaz576
    @sadafnaz576 8 років тому

    very nice. Thank you

  • @pursue2101
    @pursue2101 9 років тому

    tx so much. You make it look easy! : )

  • @githubpython8521
    @githubpython8521 8 років тому

    I tried it it works fine

  • @roundblackbear6586
    @roundblackbear6586 6 років тому

    this is awesome. thanks a lot for sharing

  • @mohamedsuhailirfankhazi6628
    @mohamedsuhailirfankhazi6628 6 років тому

    sir, you are a legend! thank you so much!

  • @jeremyestes4842
    @jeremyestes4842 8 років тому

    thanks a lot man this was very helpful for me!

  • @sakhib100
    @sakhib100 7 років тому

    Hi,
    Could you please provide link in the description field for the code so that it is convenient for us.
    Best Regards

  • @Mrsajidmir
    @Mrsajidmir 8 років тому

    Hi,
    This is awesome but;
    What if i want to display this dynamically accessed data in a slider (4 items per slide)...

  • @263africamusic5
    @263africamusic5 6 років тому

    It helped thank you very much

  • @joannadamps9480
    @joannadamps9480 5 років тому

    Thank you!

  • @yeya7354
    @yeya7354 7 років тому

    Is it possible to format the data that's extracted from the database? That is not have it just be in displayed in a table?

  • @meemiohan
    @meemiohan 9 років тому

    HEY man.
    best instruction

  • @jacobtodd2889
    @jacobtodd2889 9 років тому

    Good tutorial. But why did you need to loop it? And thanks for the vid.

  • @sudhakarrajesh3848
    @sudhakarrajesh3848 6 років тому

    super bro

  • @yusufsheikh47
    @yusufsheikh47 7 років тому

    thank you very much. your really saved me

  • @tafarrujqasim
    @tafarrujqasim 6 років тому

    thank bro it is very useful for me i am very upset for this thank again

  • @minglit42
    @minglit42 9 років тому

    Thank you for your program.

  • @asnakhan5122
    @asnakhan5122 7 років тому

    really helpful

  • @Constancetoh
    @Constancetoh 9 років тому

    hi, what about the user require and the system may need to perform to them?
    such as login: user >> login >> confirm with database >> profile
    My problem is how does the user able to see their information after succesfully login?
    Thnak you!

  • @muhamadarib7818
    @muhamadarib7818 11 років тому

    nice.. really helping..

  • @mathewtomy1523
    @mathewtomy1523 6 років тому

    i have 2 datas in database. i want to show the datas in one text box using php?

  • @BibeshManandhar
    @BibeshManandhar 9 років тому

    Thank you very much :)..

  • @indrajeetgupta5724
    @indrajeetgupta5724 8 років тому

    Thanks Sir

  • @zolidius
    @zolidius 11 років тому +1

    Great vid, why does everyone always use a html table though? Is there not a better way?

    • @DevTalk
      @DevTalk  10 років тому +1

      There are tons of better ways but tables are just good for teaching the concept, i`m not saying its the best though.
      Thanks.

    • @zolidius
      @zolidius 10 років тому

      What other ways would you recommend?

  • @MrMrpounder
    @MrMrpounder 8 років тому

    many thanks
    !

  • @karenjohnstone4848
    @karenjohnstone4848 9 років тому +1

    Thanks. Very helpful.

  • @DHANASEKARNBCS
    @DHANASEKARNBCS 7 років тому

    "unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING)"
    i did the same but it shows the above error , can i get any help?

  • @lisheng5268
    @lisheng5268 10 років тому

    I thank you so much, this saved me

  • @engramiribrahim
    @engramiribrahim 7 років тому

    Hello sir, can u help me? problem is:
    i have two table 1 (id, name), & table 2 (id, amout). I want to
    create a page like (index.php), when i input id on textbox then name
    will automatic show into another textbox then i input amount. Is it
    possible ?

  • @vigneshkrishnamoorthy7528
    @vigneshkrishnamoorthy7528 8 років тому

    Thank You a lot

  • @sujansanju2780
    @sujansanju2780 10 років тому

    Thanks a lot

  • @BeauCrenshaw
    @BeauCrenshaw 9 років тому

    awesome

  • @esaralmario1675
    @esaralmario1675 10 років тому

    really help me alot, thx ^_^

  • @EffedUPOverdubs
    @EffedUPOverdubs 10 років тому

    Ty, this was an excellent tutorial :p

  • @applemayteves
    @applemayteves 7 років тому

    thank u soo much just copy this code and edit it..

  • @LetTheWritersWrite
    @LetTheWritersWrite 9 років тому

    Instead of echoing all that HTML it's better practice to embed your php code within the HTML. Because it's loop, it's generate a new row and data over and over until you pass all your data.

  • @sweetstrawberry48
    @sweetstrawberry48 10 років тому

    Thank you

  • @jannatshahnawaz183
    @jannatshahnawaz183 6 років тому

    but we dont explain what does we use roots in this web page

  • @yoyotoi9607
    @yoyotoi9607 10 років тому +1

    really works...damn good man...really helpful.thanks loadz man

  • @Denisfutbol
    @Denisfutbol 7 років тому

    when are you going to upload a PDO video for PHP7?

    • @fikayoadepoju82
      @fikayoadepoju82 7 років тому

      Very soon

    • @Denisfutbol
      @Denisfutbol 7 років тому

      i am having so many problems with the pdo i think i will simply uninstall xampp with php7 and downgrade to php5

  • @ridewithcharles353
    @ridewithcharles353 6 років тому

    Hi! I followed your tutorial... I got this error -> Parse error: syntax error, unexpected '{'
    Right next to the while ($employee = $records->fetch_assoc())

  • @yamanabuibaid9751
    @yamanabuibaid9751 9 років тому

    THANK YOU SO MUCH!

  • @nyanna9199
    @nyanna9199 7 років тому

    It worked perfectly. Thank you so much!

  • @puputneha_007
    @puputneha_007 9 років тому

    Thank youu soo much!! ^_^ Great help here!! :)

  • @Kautivo
    @Kautivo 10 років тому

    You rock!

  • @yuukillose892
    @yuukillose892 5 років тому

    what does $records means
    can i change it ? pls help

  • @sasmalpayal
    @sasmalpayal 8 років тому

    thanks a lot

  • @bardmask9089
    @bardmask9089 9 років тому

    you know you can select database inline with the connect query like this
    mysql_connect('localhost', 'root', 'yourpass', 'db_name');

  • @yeboahmargaret9477
    @yeboahmargaret9477 7 років тому

    the current technique is by using pdo

  • @roldanabuan8818
    @roldanabuan8818 9 років тому

    Thanks

  • @BIlalkhan-xc6qb
    @BIlalkhan-xc6qb 7 років тому

    how to show a single person info from a database which is active and want to see his/her own profile ?????