RE: [PHP-DB] Newbie Help: Searching

From: Date: Thu, 06 Sep 2001 02:19:42 +0000
Subject: RE: [PHP-DB] Newbie Help: Searching
Groups: php.db 
Request: Send a blank email to php-db+get-12201@lists.php.net to get a copy of this message
have a form with something like <input type="text" name="TechContact" value=""> then submit it to a page that might do something like $Query = "SELECT * FROM enet WHERE TechContact LIKE '%$TechContact%' AND AdminContact LIKE '%'"; which will locate anything CONTAINING what the user enters in the text field HTH Beau // -----Original Message----- // From: Devon [mailto:marty_e@hotmail.com] // Sent: Thursday, 6 September 2001 10:08 AM // To: php-db@lists.php.net // Subject: [PHP-DB] Newbie Help: Searching // // // $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 // // // // -- // PHP Database Mailing List (http://www.php.net/) // To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net // For additional commands, e-mail: php-db-help@lists.php.net // To contact the list administrators, e-mail: // php-list-admin@lists.php.net //

« previous php.db (#12201) next »