#23100 [NEW]: bad arugument in function.implode
| From: | support at daystardistributing dot com | Date: | Mon, 07 Apr 2003 21:09:37 +0000 |
| Subject: | #23100 [NEW]: bad arugument in function.implode | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-37292@lists.php.net to get a copy of this message | ||
From: support at daystardistributing dot com
Operating system: Linux
PHP version: 4.3.1
PHP Bug Type: MySQL related
Bug description: bad arugument in function.implode
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 bug report at http://bugs.php.net/?id=23100&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23100&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23100&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23100&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23100&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23100&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23100&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23100&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23100&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23100&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23100&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23100&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23100&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23100&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23100&r=gnused