Search all data in database

From: Date: Tue, 11 Mar 2003 16:51:17 +0000
Subject: Search all data in database
Groups: php.general 
Request: Send a blank email to php-general+get-139142@lists.php.net to get a copy of this message
I am wanting to add a simple search field where you enter your search and it searches the whole database, not just one column. It would be easy for one column ( SELECT * FROM clients WHERE first_name = '$first_name';) but how do I search the whole table? Do I have to search each column one by one or is there an easier, more efficient way of doing this? Thanks, Mike

« previous php.general (#139142) next »