Creating a PHP Search

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ก.พ. 2025

ความคิดเห็น • 491

  • @leannegraham1985
    @leannegraham1985 ปีที่แล้ว +2

    Even though this is an old post, it's been the most helpful! Got my assignment done using it. BIG THANK YOU!

  • @eosforfly
    @eosforfly 9 ปีที่แล้ว +40

    best teacher i ever see, i like because you explain everything

  • @edwardsantora2059
    @edwardsantora2059 8 ปีที่แล้ว +3

    Joseph, I wanted to say thank you as this was a really solid tutorial. BTW, I always find it better to have the mistakes as part of the training so that we get the opportunity to troubleshoot. It enhances the training and really enforces what was covered.

  • @SlapDart
    @SlapDart 9 ปีที่แล้ว +2

    This was VERY helpful!!!! I am actually glad you made those few mistakes. It shows us what to do when if those errors come up for us! Way to go man!!!!!!!

  • @2-ply
    @2-ply 6 ปีที่แล้ว +2

    Awesome Tutorial! Btw mistakes are actually a good thing because it can shed some light for other programmers to keep them aware and on their toes :)

  • @markdecursosmoody526
    @markdecursosmoody526 7 ปีที่แล้ว

    WOW that was really really good. Great job i have spent a week trying to understand what I just learned here in 5 minutes. Thank you very much

  • @dk0money
    @dk0money 10 ปีที่แล้ว

    Yes, the mistakes you made were ironically very useful to help demonstrate and identify your debugging methods. I like how you knew you had a misspelling in one of the variables as opposed to panic about why it didn't work.

  • @squirrelgaming4028
    @squirrelgaming4028 6 ปีที่แล้ว

    your tutorials are amazing we don't care about typos

  • @bleemy
    @bleemy 12 ปีที่แล้ว

    AWESOME VIDEO !!!! been searching all day to find out how to do this and voila you explained exactly what i needed

  • @hekmaarous6227
    @hekmaarous6227 3 ปีที่แล้ว +1

    thanks a lot u saved my life as a student

  • @_jsmth
    @_jsmth  12 ปีที่แล้ว

    I will get around to it, I have been super busy these holidays doing Helping Develop's website when ever I can... I will get back to all the tutorials once that is done so I have somewhere to house my source code and download packages etc!

  • @hassanahmed3122
    @hassanahmed3122 4 ปีที่แล้ว +1

    Thank you very much for your effort it still working untill now and i use it in my graduation project

  • @MrMackster01
    @MrMackster01 4 ปีที่แล้ว

    I’m having some issues when I try your script; I’m getting a ‘500’ error code in my Chrome browser and in my Safari browser I just get a blank browser windows.. Regardless, yours is one of the best tutorials because not only do you explain WHAT you’re doing, you explain WHY you’re doing it!! Nice work!

  • @bl1585
    @bl1585 11 ปีที่แล้ว +1

    dude i dont know ur name but ur tutorial is excellent it helped me to solve my prblm....keep on posting the videos......thanx a lot

  • @andythomas9218
    @andythomas9218 9 ปีที่แล้ว

    Loved seeing how you corrected the mistakes...very helpful!

  • @cooswitjes7371
    @cooswitjes7371 6 ปีที่แล้ว

    Great Video! Thanks for making this. Explains a lot and easy to understand for Cavemen-Minds like me.

  • @F4FIGHT
    @F4FIGHT 10 ปีที่แล้ว

    Very very comprehensive and clearly explained . Thank you very much.

  • @kimfrost3362
    @kimfrost3362 9 ปีที่แล้ว

    You are awesome!
    I subscribed you, your teaching is very hearable.
    Thank you!
    Please teach for people for studying PHP!!

  • @kingsleynmai5608
    @kingsleynmai5608 4 ปีที่แล้ว +1

    Thank you very much Joe, you made know I can search not by "=" operation only but I can also use the like clause in searching for both names from my database

  • @h7snp556
    @h7snp556 7 ปีที่แล้ว

    this video helped me a lot in completing my assignment. thanks!

  • @fiscalpaladin7509
    @fiscalpaladin7509 5 ปีที่แล้ว

    Oh my gash! What a great video bro!! Keep it up!! Your video was very helpful for us specially to us who were beginners! Ive learned so many things in this video. DONE SUBSCRIBE

  • @DnKZone
    @DnKZone 4 ปีที่แล้ว

    You expletion is perfect. I like it 😊

  • @AbdiqaniAliJ
    @AbdiqaniAliJ 8 ปีที่แล้ว

    Useful Tutorial for all advance & beginners!

  • @vladxoxo8128
    @vladxoxo8128 9 ปีที่แล้ว

    Great! Tried it with mysql, simple and working! Thumbs up!

  • @azlanlan7870
    @azlanlan7870 10 ปีที่แล้ว

    thank you so much . your coding manage to help me make a search . thank you . i really need this :)

  • @Sachinartani
    @Sachinartani 8 ปีที่แล้ว

    This tutorial is great. This helps me a lot. Thanks a lot.

  • @vladjovan2744
    @vladjovan2744 10 ปีที่แล้ว

    Cool. Thanks. Btw I think it is realy good to make mistakes, becouse by that You helping us realize eventual problems we can face with in our work. BW. thanks again.

  • @_jsmth
    @_jsmth  12 ปีที่แล้ว +7

    haha yes I guess! I just try to make my tutorials are professional as I can! :D Thanks for the comment though it makes me feel a lot better :D

  • @SpeedtrixProductions
    @SpeedtrixProductions 10 ปีที่แล้ว

    Thank you you have helped me learn how to create my first search engine! Thank you!

  • @lastninja2022
    @lastninja2022 3 ปีที่แล้ว

    thank you for the tutorial sir!! please kindly make a sample how to make printout of those items?

  • @vamshivivaan
    @vamshivivaan 5 ปีที่แล้ว

    Amazing explanation brother. That was very helpful for my projects!

  • @davidmyers1652
    @davidmyers1652 9 ปีที่แล้ว +21

    Hi, great tutorial, just what I was looking for, thanks.
    Know I'm being lazy - but is there a zip file with the code that I can download?

  • @nemanjastankovic941
    @nemanjastankovic941 11 ปีที่แล้ว

    Great tut. Thank you so much for it. Best regards
    from Serbia.

  • @fahmimdnoor3346
    @fahmimdnoor3346 10 ปีที่แล้ว

    superb and excellent tutorial ! helps me a lot !

  • @vesselincohen437
    @vesselincohen437 7 ปีที่แล้ว

    Hello, Mr. Smith.
    You can explain very clear php possibilities. Your example works with me very stable with a few moderations. Can you explain how to grab data from table generated after search and use it for example to insert in another table?

  • @TheMinikid22
    @TheMinikid22 10 ปีที่แล้ว

    this was a great tutorial thank you very much and as to the mistakes i think that's good it shows what you have to do if something goes wrong.

  • @DavidAshby1
    @DavidAshby1 10 ปีที่แล้ว

    Nice tutorial, thanks.
    To update to mysqli I added/edited the following
    $dbc = mysqli_connect("localhost", "root", "PASSWORD") or die("Could not connect");
    mysqli_select_db($dbc, "search_test") or die ("Could not find database. Please try again later");
    $query = mysqli_query($dbc, "SELECT * FROM members WHERE firstname LIKE '%$searchq%' OR lastname LIKE '%$searchq%'") or die("Could not search");
    Every reference to mysql should be changed to mysqli and obviously in the connection script make sure you enter the correct password and database name as well as the table name in the SELECT query.
    works like a dream.

  • @vyoivanov
    @vyoivanov 7 ปีที่แล้ว

    Hey! What should I write on preg_replace statement if I want my search to include Cyrilic keyboard? Utf-8? Thank you for that lesson! U are the best teacher! You explain everything, using simple words so we can understand you! God bless!

  • @fractureGamIng1
    @fractureGamIng1 6 ปีที่แล้ว

    VERY NICE and very helpfull tutorial

  • @alexbentham1253
    @alexbentham1253 11 ปีที่แล้ว

    Fantastic tutorial. Helped me more than you imagine!!

  • @espinaryan
    @espinaryan 6 ปีที่แล้ว

    Actually the mistake is ok and also a tutorial so we will know how to solve the problem if we also encounter those errors, by the way you help me with your tutorial a good one

  • @somnathgarai
    @somnathgarai 10 ปีที่แล้ว

    Nice tutorials.. I learnt some more interesting things about php. Thank you.

  • @axelberlot2560
    @axelberlot2560 8 ปีที่แล้ว

    Este video es genial !!! todo funciona como lo especifica !!!
    Thisvideo is great!!! everything works as you said !!!
    I hope you could upload any tutorial video especific to OOP PHP, thanks for your help.

  • @_jsmth
    @_jsmth  12 ปีที่แล้ว +3

    Yeah I understand what you mean if you watch my jquery image slider tutorial that teaches that part... I will do a third part maybe tomorrow night, (might be a forth part too) about how to make a dynamic image slider :p meaning uploading images and displaying them automatically :D

  • @lheedp
    @lheedp 7 ปีที่แล้ว

    I like this guy! You are awesome !

  • @brianlennon126
    @brianlennon126 10 ปีที่แล้ว

    Great video! Really helpful!

  • @bhuvanavignesh8468
    @bhuvanavignesh8468 9 ปีที่แล้ว

    nice tutorial.....Well done friend......

  • @philippengendaneza218
    @philippengendaneza218 7 ปีที่แล้ว

    i like the way you start this tutorial

  • @brittanyesheppard
    @brittanyesheppard 10 ปีที่แล้ว +1

    Has helped tremendously!

  • @AntonMagician
    @AntonMagician 12 ปีที่แล้ว

    Hey I actually already knew how this works but this is an awesome tutorial :)!

  • @hasan135
    @hasan135 9 ปีที่แล้ว

    Very nice tutorial. I am expecting more video on php mysql tutorial.

  • @dineshkarki846
    @dineshkarki846 8 ปีที่แล้ว

    wow great teach !
    Dinesh mountain guide in Nepal.

  • @SahidulIslam-tz6tm
    @SahidulIslam-tz6tm 8 ปีที่แล้ว

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

  • @paulsichone707
    @paulsichone707 9 ปีที่แล้ว

    wooh!! you took me where i want to be...thanks very much

  • @mdsharifulislam5304
    @mdsharifulislam5304 10 ปีที่แล้ว

    Good suggest there ! I am very Happy on this tutorial. seriously I say that it's very good code for me.

  • @stanmtete7368
    @stanmtete7368 6 ปีที่แล้ว

    Good tutorial you explained well and nicely woww...!

  • @KSstreetKhmerFood
    @KSstreetKhmerFood 7 ปีที่แล้ว

    very good teacher i love this lesson

  • @blankshell3401
    @blankshell3401 6 ปีที่แล้ว

    Thanks it really worked...

  • @subhavadhana5689
    @subhavadhana5689 2 ปีที่แล้ว

    Can you upload a video for Boolean search using multiple skills with AND operator

  • @kumareth
    @kumareth 7 ปีที่แล้ว

    Thanks for the tut. You helped me know new :-)

  • @denvercheddie
    @denvercheddie 9 ปีที่แล้ว

    Great video with explanations and all. I am new to php. Suppose I wanted to search from a table or array located within the php file itself, what do I need to do differently?

  • @johnkennedypunzalan6381
    @johnkennedypunzalan6381 7 ปีที่แล้ว

    better than other tutorial :)

  • @VEGETADTX
    @VEGETADTX 12 ปีที่แล้ว

    Amazing tutorial! So simple, so straight to the point, clear and precise!
    Now I wonder about the performance of this search....Would we need to make some kind of PHP based binary search? Or perhaps MySQL handles it all as long as we've specified "firstname" and "lastname" as indexes inside of our table???

  • @WaqarAhmad-oc5ox
    @WaqarAhmad-oc5ox 8 ปีที่แล้ว +1

    Thanks so much this tutorial is so much helpful for me

  • @zahid09able
    @zahid09able 8 ปีที่แล้ว

    great tutorial. and great teacher. so details wow. thanks for taking the time :)

  • @AbhiBhardwaj1289
    @AbhiBhardwaj1289 11 ปีที่แล้ว

    really,it help me alot
    \thanx for video

  • @gyozohorvath322
    @gyozohorvath322 5 ปีที่แล้ว

    Still a good explanation video. Thanks for the help!

  • @muhammadagunghambali
    @muhammadagunghambali 6 ปีที่แล้ว

    thanks dude for your tutorial, it make my project easier xD

  • @lastninja2022
    @lastninja2022 5 ปีที่แล้ว

    awesome video sir...but can you please create a search base on selected drop down list example if i want to search first name then i select first the drop down list and find it using textbox in php

  • @gyappumusoka4016
    @gyappumusoka4016 9 ปีที่แล้ว

    Thanks a lot! This has been very helpful!

  • @premiafeedermusic
    @premiafeedermusic 11 ปีที่แล้ว

    Very good tutorial - its notable that to get this to work I had to remove the https from the google java url and just have //

  • @apulibaatawine3999
    @apulibaatawine3999 5 ปีที่แล้ว

    This nice tutorial.
    Please, can I get the next to the next video

  • @sups5586
    @sups5586 7 ปีที่แล้ว

    Great tutorial, How can I allow a hyphen in preg_replace?

  • @jayanthibhobho4281
    @jayanthibhobho4281 9 ปีที่แล้ว

    Nice....Quite good to learn..

  • @hynuth1
    @hynuth1 12 ปีที่แล้ว

    Going to use this on my website for sure! Thanks Joe :)

    • @hojen1232
      @hojen1232 2 ปีที่แล้ว

      What is your website i wanna know

  • @allenlg53
    @allenlg53 7 ปีที่แล้ว

    Joseph Smith I have a program that I want to put a search inside it ...to look for songs that I have already in the list....can you tell me how? Thanks

    • @allenlg53
      @allenlg53 7 ปีที่แล้ว

      If you email me I can explain it better. allenlg53@yahoo.com

  • @tural7778
    @tural7778 9 ปีที่แล้ว

    it works .. thnaks. but when pressing search button while text area is empry outputing all information in mysql. how to fix this problem? i want show this message "please fill area" when text area is empty and button pressed. thanks

  • @MrMackster01
    @MrMackster01 4 ปีที่แล้ว

    Im trying to add labels about the php output... in my case im outputting movie titles and actor’s names.. any suggestions ?

  • @bethanydavidson5609
    @bethanydavidson5609 3 ปีที่แล้ว

    Hi when i press the the seach button nothing happens, have you any idea what i have done wrong, or how i could fix this? thanks

  • @jyoti16eng
    @jyoti16eng 5 ปีที่แล้ว

    its good but my concern is that i am making a real estate website in this i have a search form that have property-location property-type and property id so how to search it from php search operation. i want to get in output property_location propertytype and id.... plz answer me

  • @percsone
    @percsone 11 ปีที่แล้ว

    Great Video! Thanks

  • @xesigndesign
    @xesigndesign 10 ปีที่แล้ว +2

    thank you very much.
    worked fine !!!!
    can you please make a tutorial how to update information in the db ?
    i can insert and delet in the db but cant update.

    • @mattmaggio229
      @mattmaggio229 10 ปีที่แล้ว

      yah i would like that i subbed to wait and see

    • @iExtraBacon
      @iExtraBacon 10 ปีที่แล้ว

      UPDATE function.

  • @qenisharrit
    @qenisharrit 9 ปีที่แล้ว

    very good tutorial, thanks.

  • @IPHPCOM
    @IPHPCOM 11 ปีที่แล้ว

    Nice big font. It is easy to watch on iPad.

  • @TheCaptainElliott
    @TheCaptainElliott 10 ปีที่แล้ว

    Instead of using a MySQL database is there a way to use a Microsoft access database instead (just for a local website)

  • @zeynabalavi5863
    @zeynabalavi5863 8 ปีที่แล้ว

    Thanks , This was exactly the tutorial I am looking for .
    I have question : How can I search between 2 tables ? please help me

  • @alexcharlton2316
    @alexcharlton2316 11 ปีที่แล้ว

    Hey dude, Nice tutorial, Any Idea how I can code up my search bar to allow more than 1 input? For example, using your data - if the user was to type "pip smith" both first and lastname.. I want mine to be able to show 2 different results, At the minute when I type a space into the search bar and submit it, it just echo's out no data at all, it doesn't recognise the space, I hope you can help, Thanks! :)

  • @narendraverma825
    @narendraverma825 7 ปีที่แล้ว

    Can you search the records without clicked on the button. I mean keypress. Just type anything into the fields and record will display.. Can you help me in this?

  • @_jsmth
    @_jsmth  12 ปีที่แล้ว +5

    No problem dude! glad to help :)

  • @bm2ilabs
    @bm2ilabs 12 ปีที่แล้ว

    Sorry Joe i wasn't the first thank you for the tuto

  • @abhishekbatakurki1842
    @abhishekbatakurki1842 4 ปีที่แล้ว

    which software are you using..?

  • @juanignaciogonzalezcalabro1293
    @juanignaciogonzalezcalabro1293 10 ปีที่แล้ว

    If I have a local Database and not one created in phpmyadmin , what should I put after mysql_connect?
    Let's say my db is in "C:/Apache2.2/htdocs/MTDB/App_Data and it is called dbo.Table.sql
    Where do I get what I should put in those three arguements in mysql_connect?
    If I never set my password, can I leave it empty? Thank you very much!

  • @januariusfiahorirahuangla5648
    @januariusfiahorirahuangla5648 2 ปีที่แล้ว

    May you create a video of using php to serach for data in a json file?

  • @RodneyEkrano
    @RodneyEkrano 7 ปีที่แล้ว

    lovely job, so how do I use this to enter the database of my company software, whitch is basically sql

  • @chibaobuile5494
    @chibaobuile5494 10 ปีที่แล้ว

    Is this support images, videos search?

  • @cembonace
    @cembonace 7 ปีที่แล้ว

    Good tutorial. I like it.

  • @ClassicCartoonsNL
    @ClassicCartoonsNL 8 ปีที่แล้ว

    How do you display multiple records with the same name ? I mean I've tried also your way but I still it doesn't display multiple results. Maybe because of some coding in java which is included in my code?

  • @eugenemartinez5937
    @eugenemartinez5937 10 ปีที่แล้ว

    Thanks for the Tutorial bro. Big Help! (y)

  • @DanielRamirez-nc9wu
    @DanielRamirez-nc9wu 5 ปีที่แล้ว

    I've been quoted 8 hrs to implement a PHP Search function on a site I'm having built , seems like you knocked it out in a fraction of the time... would you say my developer is inflating their numbers a bit?

  • @kevinwg02
    @kevinwg02 4 ปีที่แล้ว

    I used pdo method to connect ? how do i replace the mysqlquery ?