|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-04-07 16:09 UTC] 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.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 21:00:01 2025 UTC |
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