Username:    Password:        Click Here To Signup     Forgotten Password
Main Menu
Online
Members: 0

Guests: 30

191.100.x.x forum
40.77.x.x forum
46.229.x.x user
46.229.x.x dilbertplus
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x dilbertplus
46.229.x.x dilbertplus
46.229.x.x forum
46.4.x.x forum
54.173.x.x forum
54.36.x.x user
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x forum
54.36.x.x user
54.36.x.x forum
54.36.x.x user
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x user
54.36.x.x lgsl
54.36.x.x news
54.36.x.x dilbertplus
54.36.x.x user
54.36.x.x forum
54.36.x.x forum

Last Seen

4Rsercom Thu 21:49
Apophis01 Fri 10:15
Bommel Wed 09:39
frob Sat 21:14
ODDBALL118 Fri 17:07

Newest Members

Forums
KIKOFF
Sun Jan 23 2011, 05:42PM

Posts: 132
Joined: Thu Nov 18 2010, 08:18AM
Registered Member #6411
I managed to see the last 10 servers.

<?php

    
echo "<h3>{$lgsl_config['text']['las']}</h3>
    <div class='menu_text'>
    <div class='last_servers'>
    <ul>"
;

//-----------------------------------------------------------------------------------------------------------+
    
$mysql_query "SELECT `id`,`type`,`ip` FROM `{$lgsl_config['db']['prefix']}{$lgsl_config['db']['table']}` ORDER BY `id` DESC LIMIT 10";
    
$mysql_result mysql_query($mysql_query) or die(mysql_error());
    
    while(
$mysql_row mysql_fetch_array($mysql_result))
{
    echo 
"<li>Nº {$mysql_row['id']}
    IP:  <a href='?s=
{$mysql_row['id']}'>{$mysql_row['ip']}</a></li>";
}
//-----------------------------------------------------------------------------------------------------------+

    
echo "</ul>
    </div>
    </div>"
;


The bad thing is you can not put the server name, I tested with this (Displays the icon and name that does not correspond):

<?php

    
echo "<h3>{$lgsl_config['text']['las']}</h3>
    <div class='menu_text'>
    <div class='last_servers'>
    <ul>"
;

//-----------------------------------------------------------------------------------------------------------+
    
$mysql_query "SELECT `id`,`type`,`ip` FROM `{$lgsl_config['db']['prefix']}{$lgsl_config['db']['table']}` ORDER BY `id` DESC LIMIT 10";
    
$mysql_result mysql_query($mysql_query) or die(mysql_error());
    
    while(
$mysql_row mysql_fetch_array($mysql_result))
{
    echo 
"<li>Nº {$mysql_row['id']}
    <img alt='
{$lgsl_type_list[$server['b']['type']]}' src='{$misc['icon_game']}' title='{$lgsl_type_list[$server['b']['type']]}' style='vertical-align:middle'/>
    IP:  <a href='?s=
{$mysql_row['id']}'>{$mysql_row['ip']}</a> - 
    <a href='?s=
{$mysql_row['id']}' style='text-decoration:none'>{$server['s']['name']}</a></li>";
}
//-----------------------------------------------------------------------------------------------------------+

    
echo "</ul>
    </div>
    </div>"
;




How could display the icon and name of the server correctly?...

Thanks in advance, KIKOFF

Lo cortez, no quita lo valiente... ahhh... yes e107 Rock
 

Jump:     Back to top


You are not logged in - Click Here To Signup

Username:    Password:   

Mini Buttons

.... © GreyCube.com - Richard Perry - Powered by e107.org