Re: Searching help

From: Date: Thu, 06 Sep 2001 07:09:13 +0000
Subject: Re: Searching help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-66157@lists.php.net to get a copy of this message
$Query = "SELECT * FROM enet WHERE TechContact LIKE '%$Avar1%' AND AdminContact LIKE '%$Avar2%'"; try this. Avar1/2 needs to be replaced by your var that u use in your html form "Devon" <marty_e@hotmail.com> schrieb im Newsbeitrag news:20010906073624.27440.qmail@pb1.pair.com... > $Query = "SELECT * FROM enet WHERE TechContact LIKE '%' AND AdminContact > LIKE '%'"; > > This query simply prints out my entire tables, is there a way using PHP so I > can make the '%' a user input so they can search the table under those > fields. > > Cheers > > > >

« previous php.general (#66157) next »