Mam skrypt:
<?php if ($letter) { $sql = "select tipid, title, date, rating from tips where title like '$letter%' and status = 'L' "; } else { $sql = "select tipid, title, date, rating from tips where catid = $catid and status
= 'L' "; } $lastpage = false; if ($pagenum == 0) { $startrow = 0; } else { $startrow = 25 * $pagenum; } if ($numrows < $startrow + 25) { $endrow = $numrows; $lastpage = true; } if ($letter) { $sql = "select tipid, title, date, rating from tips where title like '$letter%' and status = 'L' limit $startrow,25"; $pagetitle = "Tips starting in the letter '$letter'"; } else { $sql = "select * from categories where catid = $catid"; $pagetitle = $row[1]; $sql = "select tipid, title, date, rating from tips where catid = $catid and status
= 'L' limit $startrow,25"; } ?>
i mam pytanie jak to przerobic zeby bylo sortowanie alfabetyczne?
Pozdro