- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
<? include "../o-proekte/connect.php";?>
<ul id="nav">
<li><a class=" link" href="citaty-i-aforizmy/">А</a>
<ul>
<?$a = iconv('utf8', 'cp1251', "А");
$sql = 'SELECT * FROM authors WHERE name LIKE "'.$a.'%"';
$query = mysql_query($sql) or die("Invalid query: " . mysql_error());
While ($row = mysql_fetch_array ($query))
{$results[] = $row;};?>
<? foreach ($results as $num=> $result ) {
echo iconv("cp1251", "utf8", "<li><a href=".$result['id']." id=".$result['name'].">".$result['name']."</a></li>");
}?>
</ul>
</li>
<li><a class=" link" href="citaty-i-aforizmy/">Б</a>
<ul>
<?$b = iconv('utf8', 'cp1251', "Б");
$sqlb = 'SELECT * FROM authors WHERE name LIKE "'.$b.'%"';
$queryb = mysql_query($sqlb) or die("Invalid query: " . mysql_error());
While ($rowb = mysql_fetch_array ($queryb))
{$resultsb[] = $rowb;};?>
<? foreach ($resultsb as $numb=> $resultb ) {
echo iconv("cp1251", "utf8", "<li><a href=\"\">".$resultb['name']."</a></li>");
}?>
</ul>
</li>
<li><a class=" link" href="citaty-i-aforizmy/">В</a>
<ul>
<?$v = iconv('utf8', 'cp1251', "В");
$sqlv = 'SELECT * FROM authors WHERE name LIKE "'.$v.'%"';
$queryv = mysql_query($sqlv) or die("Invalid query: " . mysql_error());
While ($rowv = mysql_fetch_array ($queryv))
{$resultsv[] = $rowv;};?>
<? foreach ($resultsv as $numv=> $resultv ) {
echo iconv("cp1251", "utf8", "<li><a href=\"\">".$resultv['name']."</a></li>");
}?>
</ul>
</li>
<li><a class=" link" href="citaty-i-aforizmy/">Г</a>
<ul>
<?$g = iconv('utf8', 'cp1251', "Г");
$sqlg = 'SELECT * FROM authors WHERE name LIKE "'.$g.'%"';
$queryg = mysql_query($sqlg) or die("Invalid query: " . mysql_error());
While ($rowg = mysql_fetch_array ($queryg))
{$resultsg[] = $rowg;};?>
<? foreach ($resultsg as $numg=> $resultg ) {
echo iconv("cp1251", "utf8", "<li><a href=\"\">".$resultg['name']."</a></li>");
}?>
</ul>
</li>
<li><a class=" link" href="citaty-i-aforizmy/">Д</a>
<ul>
<?$d = iconv('utf8', 'cp1251', "Д");
$sqld = 'SELECT * FROM authors WHERE name LIKE "'.$d.'%"';
$queryd = mysql_query($sqld) or die("Invalid query: " . mysql_error());
While ($rowd = mysql_fetch_array ($queryd))
{$resultsd[] = $rowd;};?>
<? foreach ($resultsd as $numd=> $resultd ) {
echo iconv("cp1251", "utf8", "<li><a href=\"\">".$resultd['name']."</a></li>");
}?>
</ul>
</li>
<li><a class=" link" href="citaty-i-aforizmy/">Е</a>
<ul>
<?$e = iconv('utf8', 'cp1251', "Е");
$sqle = 'SELECT * FROM authors WHERE name LIKE "'.$e.'%"';
$querye = mysql_query($sqle) or die("Invalid query: " . mysql_error());
While ($rowe = mysql_fetch_array ($querye))
{$resultse[] = $rowe;};?>
<? foreach ($resultse as $nume=> $resulte ) {
echo iconv("cp1251", "utf8", "<li><a href=\"\">".$resulte['name']."</a></li>");
}?>
</ul>
</li>
<li><a class=" link" href="citaty-i-aforizmy/">Ж</a>
<ul>
<?$j = iconv('utf8', 'cp1251', "Ж");
$sqlj = 'SELECT * FROM authors WHERE name LIKE "'.$j.'%"';
$queryj = mysql_query($sqlj) or die("Invalid query: " . mysql_error());
While ($rowj = mysql_fetch_array ($queryj))
{$resultsj[] = $rowj;};?>
<? foreach ($resultsj as $numj=> $resultj ) {
echo iconv("cp1251", "utf8", "<li><a href=\"\">".$resultj['name']."</a></li>");
}?>
</ul>
</li>
<li><a class=" link" href="citaty-i-aforizmy/">З</a>
<ul>
<?$z = iconv('utf8', 'cp1251', "З");
$sqlz = 'SELECT * FROM authors WHERE name LIKE "'.$z.'%"';
$queryz = mysql_query($sqlz) or die("Invalid query: " . mysql_error());
While ($rowz = mysql_fetch_array ($queryz))
{$resultsz[] = $rowz;};?>
<? foreach ($resultsz as $numz=> $resultz ) {
echo iconv("cp1251", "utf8", "<li><a href=\"\">".$resultz['name']."</a></li>");