Jump to content

Searching a database (on phpmyadmin) using a textbox value


mike2325

Recommended Posts

Hi,

 

I have a page which displays database results from a phpmyadmin database in a table if I hard code a search e.g. $SQLSearch="SELECT * FROM car WHERE vehicle='Ferrari'". This would show a list of every vehicle is a Ferrari. However, I want to put a text box on the web page so that the database is searched for the value of the textbox. I have tried with a few ideas but I am still struggling. Is there an easy way to do this?

 

Thanks

Are you wanting to search a particular field(s) in the database? AND what happens if there is no match? (do you add the entry as a new item?)

 

Perhpas if you elucidate unon the structure and content of the data base AND show us some of the code you have tried we can be more helpful

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.