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
Post a Comment