#23100 [Opn->Bgs]: bad arugument in function.implode
| From: | jay@php.net | Date: | Mon, 07 Apr 2003 21:50:18 +0000 |
| Subject: | #23100 [Opn->Bgs]: bad arugument in function.implode | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-37296@lists.php.net to get a copy of this message | ||
ID: 23100
Updated by: jay@php.net
Reported By: support at daystardistributing dot com
-Status: Open
+Status: Bogus
Bug Type: MySQL related
Operating System: Linux
PHP Version: 4.3.1
New Comment:
This isn't the right place to look for PHP support. If you
need help, please check out the php-general ("General user
list") mailing list.
http://www.php.net/mailing-lists.php
J
Previous Comments:
------------------------------------------------------------------------
[2003-04-07 16:09:37] support at daystardistributing dot com
When trying to use my search engine using this code
function boolean_sql_select_short($string,$match){
$match_a = explode(',',$match);
$score_unit_weight = .2;
for($ith=0;$ith<count($match_a);$ith++){
$score_a[$ith] =
"$score_unit_weight*(
LENGTH($match_a[$ith]) -
LENGTH(REPLACE(LOWER('$match_a[$ith]'),LOWER('$string'),'')))/LENGTH('$string')";
}
$score = implode(" + ",$score_a);
return $score;
}
I get the following retuned error:
Warning: implode() [function.implode]: Bad arguments. in
/*/*/public_html/search/mysql_boolean.txt on line 45
You have an error in your SQL syntax. Check the manual that corresponds
to your MySQL server version for the right syntax to use near ') -
LENGTH(REPLACE(LOWER(''),LOWER('eyb'),'')))/LENGTH('eyb'
Need help solving this issue, thanks.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23100&edit=1