ORDER BY ... Some small help.
#6

Quote:
Originally Posted by HuSs3n
Посмотреть сообщение
try this
AFIAK WHERE should be used before ORDER BY
pawn Код:
format( szQuery, sizeof szQuery, "SELECT `Name`,`GangKills` FROM `Accounts` WHERE `GangID` = '%d' ORDER BY (`GangKills`) DESC LIMIT 5", GangID );
Thanks, now works

Quote:
Originally Posted by ddnbb
Посмотреть сообщение
This might not help you or fix the problem, but doesnt 'sizeof' be like this? "sizeof(szQuery)" instead of "sizeof szQuery"
It doesn't matter, you can use with "sizeof ( szQuery )" or without ...
Reply


Messages In This Thread
ORDER BY ... Some small help. - by Edvin - 27.08.2012, 15:30
Re: ORDER BY ... Some small help. - by HuSs3n - 27.08.2012, 15:52
Re: ORDER BY ... Some small help. - by ddnbb - 27.08.2012, 16:00
Re: ORDER BY ... Some small help. - by HuSs3n - 27.08.2012, 16:02
Re: ORDER BY ... Some small help. - by Unte99 - 27.08.2012, 16:07
Re: ORDER BY ... Some small help. - by Edvin - 28.08.2012, 06:51

Forum Jump:


Users browsing this thread: 2 Guest(s)