$word = strtolower($_GET['term']);
$lev = 0;
$q = mysql_query("SELECT `term` FROM `words`");
while($r = mysql_fetch_assoc($q))
{
$r['term'] = strtolower($r['term']);
$lev = levenshtein($word, $r['term']);
if($lev >= 0 && $lev
How can I move all that into just one query? Don't want to have to query through all terms and do the filtering in PHP.
Your Answer
0 answers
Hot tools Tags
Hot Questions
Cast to Anonymous Type
2025-12-31 11:43:23
C++ IDE for Linux? [closed]
2025-12-31 11:22:44
How to get Linux console window width in Python
2025-12-31 11:01:05
Cloud Functions for Firebase trigger on time?
2025-12-31 10:43:08
Remove blue underline from link
2025-12-31 10:22:19
Popular tool
vc9-vc14 (32+64 bit) runtime library collection (link below)
Download the collection of runtime libraries required for phpStudy installation
VC9 32-bit
VC9 32-bit phpstudy integrated installation environment runtime library
PHP programmer toolbox full version
Programmer Toolbox v1.0 PHP Integrated Environment
VC11 32-bit
VC11 32-bit phpstudy integrated installation environment runtime library
SublimeText3 Chinese version
Chinese version, very easy to use
Hot Topics
Douyin level price list 1-75
20416
7
20416
7
wifi shows no ip assigned
13574
4
13574
4






