saludos!
Código PHP:
$letras = range( 'A', 'Z' );
foreach( $letras as $letra ) {
$getdiscos=mysql_query("SELECT * from phpbb_topics AS t LEFT JOIN phpbb_users AS u ON u.user_id=t.topic_poster WHERE t.forum_id='".$categoria."' AND t.topic_type='0' AND t.topic_moved_id='0' AND t.topic_title LIKE '$letra%' ORDER BY t.topic_title ASC");
while ($row = mysql_fetch_array($getdiscos))
{
echo "<tr>
<td>- ".$row['topic_title']."</td>
</tr>
";
}
echo "</table><br></a>";
}