this is a script that displays all the artists that last name's first letter is A
Are there any way I can loop this script A-Z because i do not want to type the thing out 26 times.
$query=("SELECT artist_id,artist_name,english_name FROM artist WHERE english_name LIKE 'a%' ORDER BY 'english_name' ASC ");
$result=mysql_query($query) or die(mysql_error());
//html page starts
echo "<html>";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=big5\">";
echo "All Artist Name:<br><br>";
echo "A:<br>";
//table start
echo "<center><table width=\"750\" border=\"1\">";
while($row=mysql_fetch_array($result))
{
$artist_name = $row["artist_name"];
$english_name = $row["english_name"];
//loop all artist A
echo "<td><a href=\"show.php?artist_id={$row['artist_id']}\">{$row['english_name']} {$row['artist_name']} </a><br /></td>\n";
}
echo "</table></center> \n";
//end with loop A