PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   How-to Forum (http://www.phpdig.net/forum/forumdisplay.php?f=33)
-   -   Long Call help. (http://www.phpdig.net/forum/showthread.php?t=2523)

GunMuse 07-26-2006 10:11 AM

Long Call help.
 
else {
if (is_array($strings)) {
$strings = array_values($strings);
$num_in_strings_arr = count($strings);
}
else { $num_in_strings_arr = 0; }
$leven_final = "";
$leven_sum = 0;
if (($num_in_strings_arr > 0) && (strlen($path) == 0)) {
for ($i=0; $i<$num_in_strings_arr; $i++) {
$soundex_query = "SELECT keyword FROM ".PHPDIG_DB_PREFIX."keywords WHERE SOUNDEX(CONCAT('Q',keyword)) = SOUNDEX(CONCAT('Q','".$strings[$i]."')) LIMIT 500";
$soundex_results = mysql_query($soundex_query,$id_connect);
if (mysql_num_rows($soundex_results) > 0) {
$leven_ind = 0;
$leven_amt1 = 256;
$leven_keyword = array();

That is in the search function what exactly is that call doing because its a very long call searching hundreds of thousands of keywords.


All times are GMT -8. The time now is 07:41 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.