Bans upside down
#1

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 ?
Reply
#2

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.
Reply
#3

eh not really sure how to code that =[
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)