$harfx=$_GET["harf"];
if ($harfx=='0-9')
{
$sorgupp="firma_ad like '0%' or firma_ad like '1%' or firma_ad like '2%' or firma_ad like '3%' or firma_ad like '4%' or firma_ad like '5%' or firma_ad like '6%' or firma_ad like '7%' or firma_ad like '8%' or firma_ad like '9%'";
}
if ($harfx!='0-9')
{
$sorgupp="firma_ad like '" . $harfx . "%'";
}
?>
$sql="SELECT firma_no, firma_ad, firma_sayfa FROM adres_firma WHERE anasayfa=1 and " . $sorgupp . " order by tstamp desc";
$sorgudd=mysql_query($sql);
$kaysayy=mysql_num_rows($sorgudd);
for($d=0; $d<$kaysayy; $d++)
{
$firmanox=mysql_result($sorgudd,$d,0);
$firmaadx=mysql_result($sorgudd,$d,1);
$firmasayfax=mysql_result($sorgudd,$d,2);
echo '