<FORM action=rechnik.php method=post >
<INPUT name=search size="12" maxlength="30">
<INPUT TYPE="submit" VALUE="Search"> </form><font></b>
</FORM><br />
<a href="rechnik.php?bukva=а">А</a>,
<a href="rechnik.php?bukva=б">Б</a>,
<a href="rechnik.php?bukva=в">В</a>,
<a href="rechnik.php?bukva=г">Г</a>,
<a href="rechnik.php?bukva=д">Д</a>,
<a href="rechnik.php?bukva=е">Е</a>,
<a href="rechnik.php?bukva=ж">Ж</a>,
<a href="rechnik.php?bukva=з">З</a>,
<a href="rechnik.php?bukva=и">И</a>,
<a href="rechnik.php?bukva=й">Й</a>,
<a href="rechnik.php?bukva=к">К</a>,
<a href="rechnik.php?bukva=л">Л</a>,
<a href="rechnik.php?bukva=м">М</a>,
<a href="rechnik.php?bukva=н">Н</a>,
<a href="rechnik.php?bukva=о">О</a>,
<a href="rechnik.php?bukva=п">П</a>,
<a href="rechnik.php?bukva=р">Р</a>,
<a href="rechnik.php?bukva=с">С</a>,
<a href="rechnik.php?bukva=т">Т</a>,
<a href="rechnik.php?bukva=у">У</a>,
<a href="rechnik.php?bukva=ф">Ф</a>,
<a href="rechnik.php?bukva=х">Х</a>,
<a href="rechnik.php?bukva=ц">Ц</a>,
<a href="rechnik.php?bukva=ч">Ч</a>,
<a href="rechnik.php?bukva=ш">Ш</a>,
<a href="rechnik.php?bukva=щ">Щ</a>,
<a href="rechnik.php?bukva=ъ">Ъ</a>,
<a href="rechnik.php?bukva=ь">Ь</a>,
<a href="rechnik.php?bukva=ю">Ю</a>,
<a href="rechnik.php?bukva=я">Я</a>
<table>
<?
include('conn.php');
$link=mysql_connect('localhost',$user,$password);
$db=mysql_select_db($database);
$query="SELECT * from rechnik where duma like '%$search%' ";
$result=mysql_query($query, $link);
$num=mysql_numrows($result);
mysql_close();
$i=0;
while ($i < $num) {
$duma1=mysql_result($result,$i,"duma");
$obqsnenie1=mysql_result($result,$i,"text");
?>
<tr>
<td><b><font color="000000"><? echo $duma1; ?> </font></td>
<td><? echo $obqsnenie1; ?></td>
</tr>
<?
$i++;
}
?>
</table>
<table>
<?
$bukva=$_GET['bukva'];
if ($bukva=='')
{}
include('conn.php');
$link=mysql_connect('localhost',$user,$password);
$db=mysql_select_db($database);
$query="SELECT * from rechnik where duma like '$bukva%'";
$result=mysql_query($query, $link);
$num=mysql_numrows($result);
mysql_close();
$i=0;
while ($i < $num) {
$duma2=mysql_result($result,$i,"duma");
$obqsnenie2=mysql_result($result,$i,"text");
?>
<tr>
<td><b><font color="000000"><? echo $duma2; ?> </font></td>
<td><? echo $obqsnenie2; ?></td>
</tr>
<?
$i++;
}
?>