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

Guests: 38

178.255.x.x user
213.174.x.x forum
213.174.x.x forum
216.244.x.x dilbertplus
40.77.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 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 forum
46.229.x.x user
46.229.x.x forum
5.196.x.x forum
52.13.x.x user
54.235.x.x forum
54.36.x.x forum
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x dilbertplus
54.36.x.x dilbertplus
54.36.x.x dilbertplus
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x dilbertplus
66.249.x.x news
78.46.x.x dilbertplus

Last Seen

Wussie Mon 01:59
Dodgeitorelse Mon 16:49
85filip58 Wed 12:06
Bommel Mon 18:20
Apophis01 Wed 12:35

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