SA-MP Forums Archive
Reading last 20 lines from MYSQL in descending order - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Reading last 20 lines from MYSQL in descending order (/showthread.php?tid=491100)



Reading last 20 lines from MYSQL in descending order - [WSF]ThA_Devil - 29.01.2014

I'd need help ( Ideawise ) how to read last 20 lines from MySQL DB, so they could be stored in array....

SQL Code for Last 20 lines would be like:
Код:
SELECT * FROM `table` ORDER BY ID DESC LIMIT 20
Thanks in advance...