sprobuj tak:
<?php
$db_name = "baza";
$connection = @mysql_connect("host", "baza", "haslo") or die( "Próba połączenia nie powiodła się.");
$db = @mysql_select_db($db_name, $connection) or die ( "Wybrór bazy danych nie powiódł się.");
$result= mysql_query("SELECT user_name, user_id, points_ges FROM ep_users WHERE points_ges <> '0' ORDER BY points_ges DESC LIMIT 0,8 ");
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while($data= mysql_fetch_assoc($result)){
echo "<tr><td class='small2' align='left'> <img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."profile.php?lookup=$data[user_id]' class='side'>";
echo "$data[user_name]</a></td><td class='small2' align='right'>[$data[points_ges]]</td></tr>";
}
echo "</table>";
?>
.:ZAPRASZAM - www.prizee-info.eu :.
|