Parcourir la source

:bug: table info not exist

visuddhinanda il y a 4 ans
Parent
commit
4a944a769c
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      public/app/dict/dict_lookup.php

+ 1 - 1
public/app/dict/dict_lookup.php

@@ -112,7 +112,7 @@ $right_word_list = "";
 				}
 
 				
-                $query = "SELECT dict.id,dict.dict_id,dict.mean,info.shortname from " . _TABLE_DICT_REF_ . " LEFT JOIN info ON dict.dict_id = info.id where word = ? limit 0,30";
+                $query = "SELECT dict.id,dict.dict_id,dict.mean,info.shortname from " . _TABLE_DICT_REF_ . " LEFT JOIN "._TABLE_DICT_REF_NAME_." as info ON dict.dict_id = info.id where word = ? limit 30";
                 $Fetch = PDO_FetchAll($query, array($x));
                 $iFetch = count($Fetch);
                 $count_return += $iFetch;