Re: a simple question

From: Date: Mon, 09 Jul 2001 23:42:23 +0000
Subject: Re: a simple question
Groups: php.db 
Request: Send a blank email to php-db+get-10194@lists.php.net to get a copy of this message
Hi Brad, Your parameter is named $title and you are converting a variable called $input to an array. You could catch this type of errors if you change the setting for error_reportiong in php.ini. - Frank > 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 > > > > -- > 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 (#10194) next »