Witam! Mam pytanie. Czemu na stronie
http://www.napijmysie.cba.pl/teledyski/tel...p;orderby=dancewyswietla mi sie dwa razy ten sam rekord? W bazie jest tylko jeden o danych parametrach.
Sorry ze daje taki dlugo kod, ale nie wiem ile wam potrzeba.
<?
$orderby = $_GET['orderby'];
if ($orderby==Techno){
print('<br><br><br> '.$fetch['wykonawca'].' - '.$fetch['tytul'] ); print("<br>".$fetch['czas']); print("<br>".$fetch['opis']); print("<br>".$fetch['adres']);
}
}
if ($orderby==country){
print('<br><br><br> '.$fetch['wykonawca'].' - '.$fetch['tytul'] ); print("<br>".$fetch['czas']); print("<br>".$fetch['opis']); print("<br>".$fetch['adres']); }
}
if ($orderby==dance){
print('<br><br><br> '.$fetch['wykonawca'].' - '.$fetch['tytul'] ); print("<br>".$fetch['czas']); print("<br>".$fetch['opis']); print("<br>".$fetch['adres']); }
}
if ($orderby==disco_polo){
print('<br><br><br> '.$fetch['wykonawca'].' - '.$fetch['tytul'] ); print("<br>".$fetch['czas']); print("<br>".$fetch['opis']); print("<br>".$fetch['adres']); }
}
if ($orderby==dla_dzieci){
print('<br><br><br> '.$fetch['wykonawca'].' - '.$fetch['tytul'] ); print("<br>".$fetch['czas']); print("<br>".$fetch['opis']); print("<br>".$fetch['adres']); }
}
if ($orderby==hip-hop){
print('<br><br><br> '.$fetch['wykonawca'].' - '.$fetch['tytul'] ); print("<br>".$fetch['czas']); print("<br>".$fetch['opis']); print("<br>".$fetch['adres']); }
}
if ($orderby==jazz){
print('<br><br><br> '.$fetch['wykonawca'].' - '.$fetch['tytul'] ); print("<br>".$fetch['czas']); print("<br>".$fetch['opis']); print("<br>".$fetch['adres']); }
}
if ($orderby==metal){
print('<br><br><br> '.$fetch['wykonawca'].' - '.$fetch['tytul'] ); print("<br>".$fetch['czas']); print("<br>".$fetch['opis']); print("<br>".$fetch['adres']); }
}
if ($orderby==pop){
print('<br><br><br> '.$fetch['wykonawca'].' - '.$fetch['tytul'] ); print("<br>".$fetch['czas']); print("<br>".$fetch['opis']); print("<br>".$fetch['adres']); }
}
if ($orderby==rock){
print('<br><br><br> '.$fetch['wykonawca'].' - '.$fetch['tytul'] ); print("<br>".$fetch['czas']); print("<br>".$fetch['opis']); print("<br>".$fetch['adres']); }
}
?>
pomoze ktos?