> I am dispalying data from mysql database using the codes below:
>
> $while($row=mysql_fetch_array($result))
> {
> echo $row[name];
> }
>
> How can i format the above data in this format as shown below? in
> alphabetical order
>
> A
>
$letter='';
$while($row=mysql_fetch_array($result))
{
if($letter!=$row[name][0])
{
echo $row[name][0].'';
$letter=$row[name][0];
}
echo $row[name].'';
}
Op maandag 09 juni 2003 12:41, schreef u:
> I am dispalying data from mysql database using the codes below:
>
> $while($row=mysql_fetch_array($
2 matches
Mail list logo