I am supposing the user is clicking on a letter of the alphabet first, which is passed in the $_GET[letter] variable?
For #'s you could use "num" as the "letter". Instead of passing that to the query, you could run a new query if $_GET[letter] === "num":
PHP Code:
<?php
if ($_GET[letter] === 'num') {
$sql = "SELECT * FROM bands WHERE ( substring(bandname, 1, 1) in ('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0') ) ORDER BY band_name";
} else {
$sql = "SELECT * FROM bands WHERE ( band_name like \'' . $_GET['letter']. '%\' ) ORDER BY band_name";
}
?>
Bookmarks