Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- switch ($_GET['order']) {
- case 'DESC':
- $orderby = 'DESC';
- break;
- case 'ASC':
- default:
- $orderby = 'ASC';
- }
- $query = "SELECT * FROM tabelle WHERE 1=1 ORDER BY name $orderby LIMIT 25";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement