search bar using Php and MySQL

search bar using Php and MySQL

CodeFlix

5 лет назад

192,043 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@sarthakkharade7112
@sarthakkharade7112 - 05.11.2023 10:30

great video, helped alot, thank you so much

Ответить
@WasikaHausaNews
@WasikaHausaNews - 03.07.2023 13:43

Thank you very good

Ответить
@vistemaj
@vistemaj - 25.05.2023 10:13

Your life saver thanks a lot

Ответить
@mostafafighter1008
@mostafafighter1008 - 22.05.2023 18:10

The background ncs song hits different remind me of 2016 2015

Ответить
@pranavan4055
@pranavan4055 - 05.05.2023 16:51

you saved my life
thankyou so much 🙏

Ответить
@andreeabalan6696
@andreeabalan6696 - 02.04.2023 17:53

Hi! Your video was really helpful but i was wondering how can i open in php a html page when i am searching something?

Ответить
@ValShiPhp
@ValShiPhp - 27.02.2023 14:14

hello friend, 500 error pops up

Ответить
@m.abrarrubaiyatislam3431
@m.abrarrubaiyatislam3431 - 19.02.2023 10:49

It Worked! Thanks

Ответить
@JaspreetSingh-gv9wc
@JaspreetSingh-gv9wc - 30.12.2022 21:18

Hey bro! really educational video. But I don't know why I'm getting this error. Can you please help me out in it:
Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''search' WHERE Name = 'first name'' at line 1 in C:\xampp\htdocs\practice_2\index.php:27 Stack trace: #0 C:\xampp\htdocs\practice_2\index.php(27): PDOStatement->execute() #1 {main} thrown in C:\xampp\htdocs\practice_2\index.php on line 27

Ответить
@cbrown3936
@cbrown3936 - 19.12.2022 02:16

Wow this works. How can I get the search results in another page?

Ответить
@kimbalcita2284
@kimbalcita2284 - 28.11.2022 16:36

INSERT INTO 'search'('id','Name','Description') VALUES (1,'first name','Description of first name');
INSERT INTO 'search'('id','Name','Description') VALUES (2,'second name','Description of second name');
INSERT INTO 'search'('id','Name','Description') VALUES (3,'third name','Description of third name');


I enter the same codes as yours but mine is not working. Can you please help me, I'm almost dying thinking what error I've done :(

Ответить
@aliprogaming9240
@aliprogaming9240 - 12.11.2022 02:06

thank you you helped a lot I am gonna save this video for one more time

Ответить
@Gmarkooo
@Gmarkooo - 03.11.2022 10:22

may i ask how do you make the search much easier like if you only use some letters not whole and it will still pop the information in the search menu. thnxx

Ответить
@mexavier3888
@mexavier3888 - 30.09.2022 16:14

I have a problem displaying the error after I search sa data Uncaught Error: Cannot use object of type stdClass as array

Ответить
@joaopedro-cs1zv
@joaopedro-cs1zv - 18.08.2022 02:27

thanks a lot!!
how can i search for multiple keywords in more than one row at a time?
For example: the user is looking for a vet in Boston so he types "vet boston"
is there a way to search in the row where it specifies its a vet and in the row that specifies its in boston, separating the keywords and looking at multiple rows?

Ответить
@slbglorioso3305
@slbglorioso3305 - 08.06.2022 15:30

?? why is it POST method instead of GET especially for search

Ответить
@danylayton7582
@danylayton7582 - 24.05.2022 08:22

hello,
I want to buy this tools with paypal, can I pay for it with paypal?

Ответить
@nxson8727
@nxson8727 - 18.05.2022 21:19

PDO does not work for me

Ответить
@hortobagyiaxel7844
@hortobagyiaxel7844 - 17.05.2022 10:44

really nice and easy,ty!
you saved my back

Ответить
@raashidk352
@raashidk352 - 10.05.2022 13:52

Bro, love the vid thanks so much for getting right to the point!! just a small question.. how can i show multiple records at once? it is only showing one record at a time?

if (isset($_POST["submit"])) {
$str = $_POST["search"];
$sth = $con->prepare("SELECT * FROM `users` WHERE profession = '$str'");

$sth->setFetchMode(PDO:: FETCH_OBJ);
$sth -> execute();

this is the code you have used, what should i change in the query??

Ответить
@alikaalbright1422
@alikaalbright1422 - 21.04.2022 10:08

Why is the result not more than one even if it is using like

Ответить
@alikaalbright1422
@alikaalbright1422 - 21.04.2022 10:07

It work but only select one item form the search

Ответить
@888glory9
@888glory9 - 18.04.2022 19:02

this isnt working it gives me a warning "Warning: Undefined property: stdClass::$Name" bruhhh🤦🏽

Ответить
@leeonsr
@leeonsr - 14.04.2022 13:54

How can I add pictures to my output?

Ответить
@fanjarwijaksono552
@fanjarwijaksono552 - 24.03.2022 20:13

hi, i get error on this
Parse error: syntax error, unexpected 'else' (T_ELSE) in C:\xampp\htdocs\CodeFlix.php on line 44. Can u pls help?

Ответить
@OmarkhaledYG
@OmarkhaledYG - 11.02.2022 01:08

i did as i see in the video but that what i get every time i click submit :
Fatal error: Uncaught PDOException: SQLSTATE[42S02]: Base table or view not found

Ответить
@HariBo27307
@HariBo27307 - 08.02.2022 20:21

What the hell is the background music? Is this 2010 :DD Thanks for vid tho

Ответить
@wastedart1794
@wastedart1794 - 04.01.2022 23:54

Party!

Ответить
@lamsaycomedy2668
@lamsaycomedy2668 - 25.12.2021 00:33

Sir how can I use PHP and MYSQL only to build a site like Facebook what about the design of the site

Ответить
@masterv1676
@masterv1676 - 30.10.2021 07:20

thank you....it was very useful for my project

Ответить
@rangikumar9789
@rangikumar9789 - 17.10.2021 09:28

thank u very much

Ответить
@angelicamaemacaspac6212
@angelicamaemacaspac6212 - 28.07.2021 08:18

it perfectly works. but can you help me to show multiple data in the table? because it shows one data match only. thank you!

Ответить
@vulpine678
@vulpine678 - 20.07.2021 16:04

Thanks for a great tutorial... but can i search it using id, email or address? for now i only can search using name only

Ответить
@nadirahakbar5466
@nadirahakbar5466 - 09.07.2021 17:44

Hye Sir, can i know what can i do if i want the search function to show videos?

Ответить
@anikettejpal1599
@anikettejpal1599 - 30.06.2021 06:18

Hi, i followed exactly however mine still doesnt work :(

Ответить
@harsha_karambaru
@harsha_karambaru - 13.06.2021 21:48

thank you

Ответить
@Starix-jp2gi
@Starix-jp2gi - 23.05.2021 08:55

any idea how to make the search bar chose a keyword from the name ? for example if the column name is "aaa bbb ccc ddd" and i search "aaa" it shows , bit lost

Ответить
@khan.hassan
@khan.hassan - 19.05.2021 22:07

Simple and straight to the point..

Ответить
@VevoZeitoun
@VevoZeitoun - 28.04.2021 20:56

Hey, thanks for the video.
I have one question : I can search for a (unique) 'username' in my table but how can I get the corresponding id of this username please? Knowing that it is in the same row
Thanks!

Ответить
@zy_simpamba8298
@zy_simpamba8298 - 22.04.2021 21:35

hero

Ответить
@sarmanyabhiwaniwala910
@sarmanyabhiwaniwala910 - 07.04.2021 23:08

I needed some help! I do not get any syntax errors but my code does not work online for some reason. It might have to do with using mysqli_connect instead of PDO. Do you have any idea how I can fix that?

Ответить
@andresgallardo5225
@andresgallardo5225 - 24.03.2021 14:21

Hello sir, I'm very new to php and mysql, but I'm concerned about how secure is this method.
I need to create a search bar that looks for 'asset_id' insted of title,( main) id, name or description, so I guess that I should write ("SELECT * FROM 'dbname' WHERE asset_id = '$str'"), right?
Thanks in advance for the tutorial.

Ответить
@markmark5441
@markmark5441 - 01.02.2021 11:32

How to show all the all the result? Not only the first one? Please help me

Ответить
@execute7836
@execute7836 - 10.01.2021 19:25

it doesnt show what ive searched. even its in the table

Ответить
@FunkyColonoCat
@FunkyColonoCat - 16.12.2020 16:57

Excellent! Thanks.

Ответить
@abukmoha5092
@abukmoha5092 - 10.12.2020 18:29

your The best ....your legend....thank u soo much ....much appreciated

Ответить
@baraaalhamedi6670
@baraaalhamedi6670 - 22.11.2020 03:02

Thank U Soooo

Ответить
@seneladovcata7776
@seneladovcata7776 - 18.11.2020 20:19

i have more than 1 row in my table but doesn't show each row with the same column name

Ответить
@nordalila7164
@nordalila7164 - 15.11.2020 18:09

when i'm done...i want to test , then i put my data in database, but it still said name does not exist...why ?

Ответить