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

Guests: 31

40.77.x.x dilbertplus
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 forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x lgsl
46.229.x.x forum
46.4.x.x forum
54.225.x.x forum
54.36.x.x user
54.36.x.x forum
54.36.x.x forum
54.36.x.x dilbertplus
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 forum
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x forum
66.249.x.x user
66.249.x.x download

Last Seen

haigiacmo06 Wed 23:38
85filip58 Wed 11:04
Dodgeitorelse Tue 20:14
Wussie Tue 13:27
Rowdy Tue 21:12

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