In php I have a function and inside that function I have one query like this
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);
}
But after execution of query it is showing an error like
Warning: mysql_fetch_array() expects parameter 1 to be resource, array given in storeinfo.php on line 8;
So can here some one kindly tell me what is the issue here? Any help and suggestions will be really appreciable. Thanks