I'm kinda new to this php stuff. The server I'm working on only has php3
and the script I have is a PHP4 script. It has this command in it.
foreach($l_array_of_elements as $l_search_element){
if ($l_search_element != "")
if ($case_sensitive) {
$l_search_condition.="(INSTR(name,'$l_search_element') OR INSTR
(description,'$l_search_element')) $concatenation ";
} else {
$l_search_condition.="(name LIKE
'%$l_search_element%' OR description LIKE '%$l_search_element%')
$concatenation ";
}
}
Does anyone now of a clean work around. I have tried a few differant things
and none seem to work correctly.
Thanks in advanced.
==============================================
Charles Williams
Accent Computer & Network Services
Markt 2
D-95679 Waldershof
Tel: +49 (0) 9231 972670
Fax: +49 (0) 9231 972671
http://www.acns-online.com
==============================================
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-WIN] PHP4 foreach command work around for php3
Charles Williams \( CEO ACNS \) Thu, 18 Jan 2001 01:33:07 -0800
