your hrefs would look something like...
http://www.mydomain.com/index.php?get=a
your code
if (isset($_GET['get']))
{
$match = $_GET['get'];
$query = "SELECT * FROM $mytable LIKE '$match%'";
}
else
{
$query = "SELECT * FROM $mytable";
}
$result = mysql_query($query);
while($row = mysql_fetch_array($result))
{
do this with data;
and this;
}
this would work with single chars or partial nicks
if ?get=A you would get results like
Anderson
Abigail
Andy
Ahole
if ?get=Ban you would get results like
Bands
Bandit
Ban
Bane
Banally
Banlkslfdksldfsdfsdfirjfisrjgs
etc etc.