My PHP Code
$qry9="SELECT * FROM company_likes WHERE post_id='$pid'";
$result9=mysqli_query($bd, $qry9);
$com_likes= array();
while($row9 = mysqli_fetch_array($result9)){
$com_likes[]=$row9;
}
and displaying this array in tpl file by:
{section name=b loop=$com_likes}
{/section}
Array $com_likes[]
contains both integers and strings and I want to differentiate them. If the value is an integer, use a different link from a string in the tpl file.