26.03.2012, 04:46
The tile says everything. I searched but i didn't find a good answer.
N - should be the total amount of rows in the table (SELECT count(*) FROM table). You can put it in a single query using prepared queries but I'll not get into that.
Another way to do it?
pawn Код:
format(query, sizeof(query), "SELECT * FROM `suggestions` ORDER BY `id` DESC LIMIT 10 N-10");
Another way to do it?