Posts: 1,228
Threads: 133
Joined: Oct 2009
Reputation:
0
I made a php script that displays bans on my website. As you know, in samp.ban the new bans are at the bottom. So on my website the new bans are at the bottom...
How can i make my new bans on top, on my webpage ?
Posts: 4,878
Threads: 85
Joined: Jun 2007
Reputation:
0
I have no big knowledge of php, but id gues, you read the banlog file line for line and then add the bans to your list. If possible, you could put the read bans into an string array instead. Count the number of bans, and then add them to your list out of the array via a loop. Start with the last entry, using the counted number of bans, and then go backwards, decreasing the index by 1.
Posts: 1,228
Threads: 133
Joined: Oct 2009
Reputation:
0
eh not really sure how to code that =[