Hello all,
I am in need to display all the Countries List in ASC order. But with a line inbetween every end of alphabets. This is by using PHP and SMARTY
Example:
America
Australia
Belgium
India
Like the above i need to display the O/P.
My query is
$str = 'A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,Y,Z';
$let=explode(',', $str, 24);
for($i=0; $i<25; $i++)
{
$letter = $let[$i][0];
$select="select *from tbl_country where Country_name like '".$letter."%' ORDER BY Country_name ASC";
$country =$this->ExecuteQuery($select, "select");
$objSmarty->assign("letter",$letter);
}
$objSmarty->assign("Exe_Wcat",$country);
By executing the above query i am getting all the countires in ORDER. But how should i insert the line break ?
Thanks in Advance...
Fero