Jump to content

Recommended Posts

Posted

Hello guys so i have this code in my website

 

function connect() 
{ 
include "configs/script_config.php";
}

$sexes = array('Male', 'Famale'); 
$online = array('0' => "<font color=#FF0000><b>OFFLINE</b></font>", '1' => "<font color=#035922><b>ONLINE</b></font>");
$klan = array('0' => "No Clan"); 

$FORM = "" ; 
$query_chars = "select char_name,level,sex,clanid,onlinetime,lastAccess from characters where onlinetime >= 1 order by onlinetime desc limit 50;"; 
connect(); 
$link = mysql_query($query_chars); 
$i=1; 
$r=255; 
while ( $row=mysql_fetch_row($link) )
{  
    $timer=$row[4];
    $day = bcdiv($row[4],86400);
    $datetime  = gmstrftime("$day day(s) %H hour(s) %M min(s)", $timer);
    $timer2=$row[5]/1000;
    $datetime2  = gmstrftime("%d.%m.%Y", $timer2);
    $datetime3  = gmstrftime("%H:%M:%S GMT", $timer2);
    $query = "select clan_name from clan_data where clan_id=$row[3]"; 
    $link2 = mysql_query($query); 
    $clan = mysql_fetch_row($link2);  

    $FORM .= "<table border='3'> <tr>    
    <td align=center><font color=#808080><b>  $i.</b></span></td> 
    <td align=center><font color=#AE5C08>  $row[0]</td>
    <td class='Stil5' align=center>$row[1]</td>  
    <td class='Stil5' align=center>".$sexes[$row[2]]."</td>  
    <td align=center><font color=#21ff22>[".$clan[0]."]</td> 
    <td align=center><font color=#21ff22>$datetime</td>
    </tr></table>"; 
    $i++; 
    $r -= 0; 
}  

mysql_close(); 

echo $FORM; 

 

The code is ok but i want to see the list in Columns like: Name/Class/Clan/OnlineTime and to be fixed because if someone has a bigger name the table is bigger... any ideas?

Guest
This topic is now closed to further replies.


  • Posts

    • 🚀 Uninterrupted High-Performance AI: Claude 3.5 Sonnet, ChatGPT Plus, and Cursor AI running with 100% uptime on KloudItem.     FINAL CALL: Google is Shutting This Down After October 2026! Google will NEVER bring back this window of opportunity again. Once this month ends, this massive backdoor upgrade is gone permanently!  BUY 2, GET 1 FREE IS STILL LIVE! Stock up now for yourself, your family, your business, and your friends! Think about it: Every single person you know uses a Gmail account, and everyone is running out of storage. Don't let your loved ones get trapped paying $20–$30 every single month when you can set them up with 5TB Cloud Storage + Gemini Advanced (12–18 Months) right now for only $15! Why Buy Bulk Activations Today? Instant Gift Value: Perfect lifetime-style gift for clients, family, or team members. 100% Private & Safe: Activates on personal Gmails—zero passwords or logins required. Global Access: Works worldwide with zero VPN hassles. Instant Automated Delivery: Receive your activation links in seconds 24/7! ‍ Time is running out fast—secure your extra free licenses before the October deadline hits! Order Your Bundle Now on the Website
    • 🌐 Works Globally Without VPN: Activate 5TB + Gemini Pro anywhere in the world on your personal Google account in under 60 seconds!     FINAL CALL: Google is Shutting This Down After October 2026! Google will NEVER bring back this window of opportunity again. Once this month ends, this massive backdoor upgrade is gone permanently!  BUY 2, GET 1 FREE IS STILL LIVE! Stock up now for yourself, your family, your business, and your friends! Think about it: Every single person you know uses a Gmail account, and everyone is running out of storage. Don't let your loved ones get trapped paying $20–$30 every single month when you can set them up with 5TB Cloud Storage + Gemini Advanced (12–18 Months) right now for only $15! Why Buy Bulk Activations Today? Instant Gift Value: Perfect lifetime-style gift for clients, family, or team members. 100% Private & Safe: Activates on personal Gmails—zero passwords or logins required. Global Access: Works worldwide with zero VPN hassles. Instant Automated Delivery: Receive your activation links in seconds 24/7! ‍ Time is running out fast—secure your extra free licenses before the October deadline hits! Order Your Bundle Now on the Website
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..