Php : How To Search And Filter Data In Html Table Using Php And MySQL Database [ with source code ]

Поделиться
HTML-код
  • Опубликовано: 31 окт 2015
  • How To Find Data In MySQL Database And Display It In Html Table Using Php
    Source Code: 1bestcsharp.blogspot.com/2015/...
    -------- Check Out More PHP Projects! --------
    ▶ PHP Inventory Management System: • PHP Inventory Manageme...
    ▶ PHP Real Estate Management System: • PHP Real Estate Manage...
    ▶ PHP Address Book Management System: • PHP Address Book Proje...
    -----------------------
    PHP Programming Tutorials ➜ bit.ly/2Lh7zPM
    PHP And MySQL Tutorials ➜ bit.ly/2kdXWot
    PHP Programming Projects: bit.ly/PHP_PROJECTS
    PHP Course For Beginners ➜ bit.ly/2GxRodb
    Learn PHP By Building Projects ➜ bit.ly/2XAiDOn
    PHP Projects Source Code ➜ bit.ly/2WikoUq
    Web Development Course ➜ bit.ly/2ITRQrj
    Website Builder Tool ➜ bit.ly/2JgaZ64
    visit our blog 1bestcsharp.blogspot.com/
    instagram: / 1bestcsharpblog
    facebook: / 1bestcsharp
    twitter: / 1bestcsharp_
    subscribe: goo.gl/nRjPKk
    Share This Video:
    • Php : How To Search An...
    In this Php Tutorial You will see How You Can Make Search Input Text And Show Data With Input Text Value In Html Table Using MySQL Database And Php .
    I Use In This Tutorial:
    - NetBeans IDE .
    - XAMPP .
    - PhpMyAdmin .
    Others Tutorials :
    Get Select Option Value From MySQL Database Using Php
    • Php : How To Get Selec...
    How To Populate Html Table From MySQL Database Using Php
    • Php : How To Populate ...
    How To Use Mysqli Num Rows In Php
    • Php And MySQL : How To...
    How To Use Pdo Row Count In Php
    • Php And MySQL : How To...
    Insert Update Delete Search Data In MySQL Database Using Php Part1
    • Php : How To Insert Up...
    Check Out This:
    Top Programming Courses On Udemy
    1bestcsharp.blogspot.com/2016/...
    ----------- COURSES YOU MAY LIKE -----------
    👉 Web Development Course: bit.ly/33eai4h
    👉 Javascript Courses: bit.ly/35oYKwq
    👉 Python Course: bit.ly/2XIdWlD
    👉 React Course: bit.ly/2KQ7vrB
    👉 PHP Course For Beginners: bit.ly/2GxRodb
    👉 ASP.NET Course: bit.ly/2D8yR82
    👉 Data Science Course: bit.ly/2Of3xL9
    👉 Machine Learning Courses: bit.ly/2qHHBzh
    👉 Full-stack .NET Developer Course: bit.ly/2OfooOB
    👉 Docker Course: bit.ly/37wivnH
  • НаукаНаука

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

  • @dannyyeoh2340
    @dannyyeoh2340 6 лет назад +3

    I did not try the code on my project yet, but I can say you are a genius 1BestCsharp blog. Codes are simple and easy to understand. I like tutorial that is straight to the point rather than mumbling a lot. A good tutorial does not need audio if the visual explanation is good enough. Thanks and thumbs up again for a good tutorial like this..Please do more tutorial like this for the benefit of everyone..

  • @serranoaaronjamesv.6436
    @serranoaaronjamesv.6436 2 года назад

    I'm new to PHP and this helped me and my groupmates a lot. No idea that a video this old will help us so much! Thank you so much!

  • @ltilluck
    @ltilluck 6 лет назад +1

    Great video! helped me alot! had errors with my code but was able to figure out the necessary steps.

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

    thanks you so much brother..! after watching thousands of videos this is the best one

  • @ConanY
    @ConanY 7 лет назад +2

    Thank you so much! One slight suggestion is on CONCAT - if we want to avoid search results "ab" where a and b come from 2 adjacent columns, we better use seperate LIKE...OR.. for each column.

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

    I know this video is old, but this video helped me a lot today. Clear and simple explanation. Thanks a lot Csharp blog.

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

    you are the man :) the best video for my search query.. keep up to good work

  • @celiagaylard489
    @celiagaylard489 6 лет назад +1

    Thanks a bunch, this helped me loads.

  • @tadashikonno9002
    @tadashikonno9002 5 лет назад +5

    Awesome! Thank you for your work. Mine worked with this change for the first query.
    "SELECT * FROM tablename WHERE columnname LIKE '%$valueToSearch%'"

  • @soumyasingh2162
    @soumyasingh2162 5 лет назад +5

    thank you so much it really helped me in doing my task to get job thanks a lot :)

  • @abdulkohhar4287
    @abdulkohhar4287 6 лет назад +4

    thanks a lot, it helps me a lot... appreciate it a lot... god bless you :)

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

    Thank you very much! This video is a great help

  • @Jaczer28
    @Jaczer28 3 года назад +1

    thanks man! exactly what i am looking for !

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

    very very thank you so much sir....! really nice and helpful video.

  • @Cael901
    @Cael901 Год назад +1

    7 years passed and it is 2023 this code still works thank you

  • @RobbieGarciakawasakininja650r
    @RobbieGarciakawasakininja650r 6 лет назад +1

    Thanks! It works very fine

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

    Thanks a lot , it does work !!!

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

    THANK YOU SOOOOO MUCH!!

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

    Thanks for the codes It's a good start for me hope you post a lot of video tutorials regarding web development..

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

    very good tutorial. thank you :)

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

    it works perfect for me! thank you so much for this tutorial!

  • @Dennis-nd9xu
    @Dennis-nd9xu 5 лет назад +2

    Thanks it works :)

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

    This video really.... Good......... very helpful for me....... Thk U

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

    thank you for saving my life

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

    Thanku so much..really helped

  • @ajncz5161
    @ajncz5161 6 лет назад +1

    man you are amazing thanks alot bro this helps me in my job hahahah thanks bro

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

    it work. thanks you

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

    Got it, thank you sir!

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

    thank you so much dude!

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

    flawless..thank you

  • @YosafatDhimas
    @YosafatDhimas 6 лет назад +1

    it works to me thanks

  • @frederickgrantbanting1928
    @frederickgrantbanting1928 6 лет назад +1

    Thanks man!

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

    Thanks, men.

  • @manali8131
    @manali8131 6 лет назад +1

    Thank you so mucccchh

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

    thank you this was really great! you made it quite simple,
    I want to ask is it much harder to add multiple filter fields so you can filter at the same time? wow i figured it out it took al ong time, thank u for this very helpful!

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

    Very good tutorial . Thank you..

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

    This is very helpful... May I know what is the IDE you are using to run PHP?

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

    ty bro, guys i reccomend copy paste it from his description for no mistakes :)

  • @mr.bekzod9989
    @mr.bekzod9989 11 месяцев назад +1

    This thing really helpful

  • @vesselincohen437
    @vesselincohen437 7 лет назад +2

    Very nice example! Thank you for your time, author! Can you explain what is the method of filtering with cyrillic simbols? Thank you

  • @ogungbuyivictor6278
    @ogungbuyivictor6278 Год назад +1

    am happy to use it kudos

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

    great job...

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

    thank you!

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

    for those people who has problems on mysqli_fetch_array() just add ........ and don't forget the CONCAT on the sql statement.

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

    ty dude ^_^ i love u

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

    Thank you so much sir!

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

    thank you so much...

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

    thank you so much,

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

    thank you so much

  • @Crazygals
    @Crazygals 7 лет назад +2

    awesome one

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

    thank you...

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

    Thanks a lot :)

  • @ane-manda
    @ane-manda 4 года назад +1

    thank u so much

  • @neosofts2023
    @neosofts2023 3 года назад +1

    Great 👍

  • @syedmuhammadkawish7176
    @syedmuhammadkawish7176 6 лет назад +1

    Nice coded and concise , it helps me working perfectly.
    Thank you.

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

    thank you very much, need one more help--- i dont want show total table (before search) ... need to show only search record in the table
    is it possible?

  • @bangasro9357
    @bangasro9357 3 года назад +1

    thank you

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

    Good show Dear

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

    Briliant !!!!

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

    THANKS YOU SO MUCH AUTHOR u make it more than clear, again can anyone show me how to search form 4 students examination results(online)?

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

    Thanks for the tutorial. Please how do you clear the filter to show the full table again?

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

    awesome...

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

    Hey, on 4:29 min, on line 46. the i am getting an error while i did a good copy of yours. what is wrong? this is preventing me of viewing the list

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

    please can you let me know how to search multiple tables , fetch those datas and display it using php?

  • @supernella220
    @supernella220 6 лет назад +1

    good tut

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

    Thanks. When I run this programme it brows all data of he database. I dont want it. I want it will show only the search bar and i input my required data and press filter button. Then the required data will be browsed.

  • @newbeginnings4583
    @newbeginnings4583 3 года назад +1

    thank youuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu so muchhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

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

    The code is very helpful thank you! However, I'm facing a problem which is when I search the search result or filter is always empty. Can you help with that?

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

    thanks bro

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

    Plz make a video on how to join search bar with selecting coloumn by select box

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

    hey,
    Thankyou for a nice code.
    i want you ask about the sql query that i want to select the top results from table on user demand. can you please help me.
    example - as i your data select top 5 record filter by age column .
    i am try this --
    $query = "SELECT * FROM `users` ORDER BY count DESC LIKE '".$valueToSearch."' ";
    but its not working .
    please help me.

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

    How would you display 2 html tables and do a search? For an example, displaying students and teachers tables.. thanks in advance!

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

    when I'm inserting the action in form tag then my code is not working(not even else condition) and without action at least my else is working. I tried a lots of things with this code but nothing is working. please help me out...!

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

    Hi may i know how do i implement this table in a web server instead?

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

    can you provide code for textbox,dropdown,dates(from,to) all at a time with single FILTER button.

  • @dartv1337
    @dartv1337 6 лет назад +1

    I've tried so many tutorials here in YT and after how many trials finally I found one that worked. yey! but I just want to ask, I just want to display my data after clicking search. How to do that? I don't want to see my data being displayed already on my page, can you teach me how to remove it? Anyone? THANKS by he way.

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

      can you help me where the error is







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

      you are right this is not searching method this is just filtering data in table

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

    hello. can u make a tutorial how to search like this combine with delete function (take it from your website too). i try but error always came up. :( please please. desperate. *new to php

  • @AwaisAli-jy3cj
    @AwaisAli-jy3cj 5 лет назад +1

    All Good
    If you are facing any issues regarding mysqli_fetch_array(),
    just remove the single quote from the query you are using
    e-g "SELECT 'patient_id', 'fname, lname', 'gender','dob','address' from patient ";
    TO
    "SELECT patient_id, fname, lname, gender,dob,address from patient ";

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

    why mine when enter value the result is nothing just head of the table only

  • @SahidulIslam-tz6tm
    @SahidulIslam-tz6tm 7 лет назад

    What algorithm is used here(I mean like binary search, depth first search etc)? I want to know the algorithm. Thanks

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

    my database contains saumil shah as one name in one column but when i search saumil sir then it doesnt display...
    if any one can help me??
    thanks in advance
    although when i search saumil/shah/aumil/ any other smaller word it displayes saumil shah but while joining other word like saumil sir , saumil bhai i cant find saumil shah.... so help me

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

    this is filter but how to make table view only and after enter the value? we need it search not filter

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

    Sir.
    Can You Tell Me I Can Get Image After Search Like this, Please Sir help Me.

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

    can you do editing and deleting?

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

    bro what ever the data I'm filtering it is comeing twice.
    please help me in solving the problem..

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

    i like

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

    I am getting error as PHP Notice: Undefined index: valueToSearch author can you please help me this

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

    Is it possible for this "search function" to be capable of searching across multiple tables across one database and display it on the table or is that impossible? Just working on a project for work. :)

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

    Parse error: syntax error, unexpected 'endwhile' (T_ENDWHILE), expecting end of file in..... huhu whats is this? how can I fix this problem? please help me

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

    please make a tutorial 'filter data using dropdown list'

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

    sir I want this to be link so if I click the name all of his data will be view. like how the facebook search bar work. thanks sir .. I just need it from my assignment. :)
    also nice tutorial now it work, ..
    #Ihaveapoorenglishgrammar:(

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

    Any suggestions for autocomplete

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

    Bakit di gumagana po ang(mysqli_fetch_array()....................) na part po?

  • @mohamedmohamed-nu1zi
    @mohamedmohamed-nu1zi 5 лет назад

    please how to search with adoquery in 2 table with edit delphi

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

    I am getting "Object not found" when clicking the search button. Any help?

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

    please
    i need name of program that work you?
    what is you name of program that work you?

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

    Where is the form action include table???

  • @Na-fm3kq
    @Na-fm3kq 4 года назад

    How to find the diffrence between 2 rows?

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

    Php_search_in_mysql_database.php was not found on this server

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

    Filter is not working. Is any one there to help me. I am using wamp server. I s that problem?