mysql - Finding an item in a database in php -


using combination of php , mysql, let's have database tables. have page (php or html) allows user enter string; search specific table input , return information on entry if exists, , tell them nothing found otherwise. more specifically, if had table titled zookeepers had row name , wanted page user prompted enter name , return whether there zookeeper name or not , if output information, code that?

i'm pretty sure want is:

select * zookeepers name = $variable 

as far query goes, i'm not sure beyond that.

use keywork in query name can same multiple rows

change

 select * zookeepers name = $variable 

to

$select="select * zookeepers name '%$variable%'"; 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -