как да направя това нещо
в index.php имам това:
обаче нещо не се получава... не съм сигурен, че трябва да е така , затова ако можете помагайте
Код:
A B C D E F G H I...
в index.php имам това:
а в sorted.php<?
echo"<div class='post' style='padding-top: 27px;'>
<div class='entry'>
<p><center>".
$A = '|' .'<a href="sorted.php?order=a"><b>A</b></a>'. '|' .
$B = ' <a href="sorted.php?order=b"><b>B</b></a>'. '|' .
$C = ' <a href="sorted.php?order=c"><b>C</b></a>'. '|' .
$D = ' <a href="sorted.php?order=d"><b>D</b></a>'. '|' .
$E = ' <a href="sorted.php?order=e"><b>E</b></a>'. '|' .
$F = ' <a href="sorted.php?order=f"><b>F</b></a>'. '|' .
$G = ' <a href="sorted.php?order=g"><b>G</b></a>'. '|' .
$H = ' <a href="sorted.php?order=h"><b>H</b></a>'. '|' .
$I = ' <a href="sorted.php?order=i"><b>I</b></a>'. '|' .
$J = ' <a href="sorted.php?order=j"><b>J</b></a>'. '|' .
$K = ' <a href="sorted.php?order=k"><b>K</b></a>'. '|' .
$L = ' <a href="sorted.php?order=l"><b>L</b></a>'. '|' .
$M = ' <a href="sorted.php?order=m"><b>M</b></a>'. '|' .
$N = ' <a href="sorted.php?order=n"><b>N</b></a>'. '|' .
$O = ' <a href="sorted.php?order=o"><b>O</b></a>'. '|' .
$P = ' <a href="sorted.php?order=p"><b>P</b></a>'. '|' .
$Q = ' <a href="sorted.php?order=q"><b>Q</b></a>'. '|' .
$R = ' <a href="sorted.php?order=r"><b>R</b></a>'. '|' .
$S = ' <a href="sorted.php?order=s"><b>S</b></a>'. '|' .
$T = ' <a href="sorted.php?order=t"><b>T</b></a>'. '|' .
$U = ' <a href="sorted.php?order=u"><b>U</b></a>'. '|' .
$V = ' <a href="sorted.php?order=v"><b>V</b></a>'. '|' .
$W = ' <a href="sorted.php?order=w"><b>W</b></a>'. '|' .
$X = ' <a href="sorted.php?order=x"><b>X</b></a>'. '|' .
$Y = ' <a href="sorted.php?order=y"><b>Y</b></a>'. '|' .
$Z = ' <a href="sorted.php?order=z"><b>Z</b></a>'. '|' .
"</center></p>
</div>
<p class='meta'></p>
</div>";
?>
Код:
<?
include_once ('config.php');
$sort = $_GET['order'];
$query = "SELECT * FROM `lyrics` ORDER BY '$sort'";
$result7 = mysql_query($query) or die('Грешка!');
echo "<center>Резултати:";
echo "<br><br>";
while($row = mysql_fetch_array($result7))
{
$id = htmlspecialchars($row['id']);
$pesen = htmlspecialchars($row['pesen']);
$izpulnitel = htmlspecialchars($row['izpulnitel']);
echo "<a href='view.php?id=$id'style=' text-decoration:none;'><b>$izpulnitel - $pesen</b><br />";
обаче нещо не се получава... не съм сигурен, че трябва да е така , затова ако можете помагайте