hi friends,
my code is as follow,
------sql query here------------
$result = mysql_query($sql):
while ($row = mysql_fetch_array($res))
{
$row[tableLegends];
$link[]=$row;
}
when i use foreach loop in template, it give the inavlid argument "Invalid argument supplied for foreach() error"
foreach($link AS %links){
--------code here-------
}
i am not understanding where i comit mistake.