- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
if (@$_GET['sortid']=="asc") { $sortus="ORDER BY id ASC"; $urlsortid="desc"; }
elseif (@$_GET['sortid']=="desc") { $sortus="ORDER BY id DESC"; $urlsortid="asc"; }
else { $urlsortid="desc"; }
if (@$_GET['sortdatereg']=="asc") { $sortus="ORDER BY date_reg ASC"; $urlsortdatreg="desc"; }
elseif (@$_GET['sortdatereg']=="desc"){ $sortus="ORDER BY date_reg DESC"; $urlsortdatreg="asc"; }
else { $urlsortdatreg="asc";}
if (@$_GET['sortmail']=="asc") { $sortus="ORDER BY email ASC"; $urlsortmail="desc"; }
elseif (@$_GET['sortmail']=="desc"){ $sortus="ORDER BY email DESC"; $urlsortmail="asc"; }
else { $urlsortmail="asc"; }
if (@$_GET['sortname']=="asc") { $sortus="ORDER BY username ASC"; $urlsortname="desc"; }
elseif (@$_GET['sortname']=="desc"){ $sortus="ORDER BY username DESC"; $urlsortname="asc"; }
else { $urlsortname="asc"; }
if (@$_GET['sortip']=="asc") { $sortus="ORDER BY reg_ip ASC"; $urlsortip="desc"; }
elseif (@$_GET['sortip']=="desc"){ $sortus="ORDER BY reg_ip DESC"; $urlsortip="asc"; }
else { $urlsortip="asc"; }
guest 09.06.2009 13:50 # +1