Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Releases
CMS Releases
[Rev] Banlist fix [ASE]
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="presto5" data-source="post: 59307" data-attributes="member: 4844"><p>I guess this is better than the code I took for phoenix php hk</p><p> </p><p>Since the remove button I didnt feel like fixing.</p><p> </p><p>[php]</p><p><table width="100%" border="0" cellspacing="0"></p><p><thead style="margin-bottom:10px;"></p><p><tr></p><p><td width="10%">Ban ID</td></p><p> <td width="10%">Type</td></p><p><td width="15%">Data</td></p><p><td width="30%">Reason</td></p><p><td width="10%">Expires</td></p><p><td width="15%">Added By</td></p><p><td width="10%">Option</td></p><p></tr></p><p></thead></p><p><?php</p><p>$banq = mysql_query("SELECT * FROM bans");</p><p>while($ban = mysql_fetch_array($banq))</p><p>{</p><p>?></p><p><tr></p><p><td><?php echo $ban['id']; ?></td></p><p> <td><?php echo strtoupper($ban['bantype']); ?></td></p><p><td><?php echo $ban['value']; ?></td></p><p><td><?php echo $ban['reason']; ?></td></p><p><td><?php if($ban['expire'] < time()) echo 'Expired'; else echo @date("d-m-Y H:i", $ban['expire']); ?></td></p><p><td><?php echo $ban['added_by']; ?></td></p><p><td><button class="left" onClick="RemoveBan('<?php echo $ban['id']; ?>');" href="#">Remove</button></td></p><p></tr></p><p><?php</p><p>}</p><p>?>[/php]</p><p> </p><p>Right Now I have your code edited too</p><p> </p><p>[php]<tr><td><b>Username</b></td><td><b>Reason</b></td><td><b>Banned by</b></td><td><b>Expires</b></td><td><b>Value</b></td></tr></p><p><?php</p><p>$getBans = mysql_query("SELECT * FROM bans");</p><p> </p><p>while(($ban = mysql_fetch_array($getBans))) </p><p>{</p><p>echo "<tr><td>" . $ban['value'] ."</td><td>" . $ban['reason'] . "</td><td>" . $ban['added_by'] . "</td><td>" . @date("d-m-Y H:i", $ban['expire']) . "</td><td><a href='?url=banlist&unban=" . $ban['id'] . "'><b>Unban</b></a></td></tr>";</p><p>}</p><p>?>[/php]</p><p> </p><p> </p><p>Could someone help me add it to where is says expired if the ban is expired.</p></blockquote><p></p>
[QUOTE="presto5, post: 59307, member: 4844"] I guess this is better than the code I took for phoenix php hk Since the remove button I didnt feel like fixing. [php] <table width="100%" border="0" cellspacing="0"> <thead style="margin-bottom:10px;"> <tr> <td width="10%">Ban ID</td> <td width="10%">Type</td> <td width="15%">Data</td> <td width="30%">Reason</td> <td width="10%">Expires</td> <td width="15%">Added By</td> <td width="10%">Option</td> </tr> </thead> <?php $banq = mysql_query("SELECT * FROM bans"); while($ban = mysql_fetch_array($banq)) { ?> <tr> <td><?php echo $ban['id']; ?></td> <td><?php echo strtoupper($ban['bantype']); ?></td> <td><?php echo $ban['value']; ?></td> <td><?php echo $ban['reason']; ?></td> <td><?php if($ban['expire'] < time()) echo 'Expired'; else echo @date("d-m-Y H:i", $ban['expire']); ?></td> <td><?php echo $ban['added_by']; ?></td> <td><button class="left" onClick="RemoveBan('<?php echo $ban['id']; ?>');" href="#">Remove</button></td> </tr> <?php } ?>[/php] Right Now I have your code edited too [php]<tr><td><b>Username</b></td><td><b>Reason</b></td><td><b>Banned by</b></td><td><b>Expires</b></td><td><b>Value</b></td></tr> <?php $getBans = mysql_query("SELECT * FROM bans"); while(($ban = mysql_fetch_array($getBans))) { echo "<tr><td>" . $ban['value'] ."</td><td>" . $ban['reason'] . "</td><td>" . $ban['added_by'] . "</td><td>" . @date("d-m-Y H:i", $ban['expire']) . "</td><td><a href='?url=banlist&unban=" . $ban['id'] . "'><b>Unban</b></a></td></tr>"; } ?>[/php] Could someone help me add it to where is says expired if the ban is expired. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
CMS Releases
[Rev] Banlist fix [ASE]
Top