PHPには関数があり、その関数内には次のようなクエリが1つあります
public function hookHome($params)
{
$defaultLanguage = (int)(Configuration::get('PS_LANG_DEFAULT'));
global $cookie, $smarty;
$value=array();
$sql_select="SELECT DISTINCT country_name,country_ISO from "._DB_PREFIX_."storeinfo where status='1'";
$result=Db::getInstance()->ExecuteS($sql_select);
while($row=mysql_fetch_assoc($result))
{
$value[] = $row;
}
$smarty->assign('array',$value);
$smarty->assign('default',$defaultLanguage);
}
しかし、クエリの実行後、警告のようなエラーが表示されます:mysql_fetch_array() expects parameter 1 to be resource, array given in storeinfo.php on line 8;
ここで、ここで何が問題なのか教えてもらえますか?どんな助けや提案も本当に価値があります。ありがとう