Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Ieskau paneles

Parašė robert· 2008 Gru. 21 10:12:48
#7


<?php

mysql_connect("localhost","nick","pass") or die( mysql_error() );
mysql_select_db ("db_pavadinimas");

$result = mysql_query("SELECT * FROM fusion_user_points ORDER BY points_total ASC LIMIT 10") or die( mysql_error() );

echo "<table class='lentele' align='center'>

<td align='left'><b>Nick</b></td>
<td align='left'><b>Taškų</b></td>
";

while ( $row = mysql_fetch_assoc($result) )
  {
  echo "<tr>";
  echo "<td>" . $row['owner_name'] . "</td>";
  echo "<td>" . $row['points_total'] . "</td>";
  echo "</tr>";
  }
echo "</table>";

 
?>





Ten kur pažymėta raudonai tai ten keisk į savo duomenis