a simple question

From: Date: Mon, 09 Jul 2001 23:13:01 +0000
Subject: a simple question
Groups: php.db 
Request: Send a blank email to php-db+get-10190@lists.php.net to get a copy of this message
can somebody help me with the following code: function multi_word($title) { $array = explode (" ", $input); $number = count ($array); if ($number > 1) { return true; } else{ return false; } } if ($category) { $Query = "SELECT * from $TableName WHERE ((category)=$category)"; } else { if ($title) { if (multi_word($title)) { print "one word at a time for now"; die(); } else { $Query = "SELECT * from $TableName WHERE title LIKE '%$title%'"; } } } when i try to pass in a multi-word string it doesnt print anything. I have tested the function and I know it works allright... if anyone could help that would be great. Brad

« previous php.db (#10190) next »