Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /usr/export/www/hosting/rpgcoders/avatar/top10.php on line 5
Hata veriyor
<?php
include "includes/db_connect.php";
$s=mysql_query("SELECT * FROM users ORDER BY id DESC");
while($users=mysql_fetch_object($s)){
echo "<b><font color=green>ID</font></b> <font color=darkred>: $users->id</font><br>";
echo "<b><font color=green>Nick</font></b> <font color=darkred>: $users->username </font><br>";
echo "<br><font color=red>_______________________________</font><br>";
}
?>
KODLAR BOLEYKEN DOGRU AMA ASAGIDAKI GIBI YAPINCA
<?php
include "includes/db_connect.php";
$s=mysql_query("SELECT TOP 3 * FROM users ORDER BY id DESC");
while($users=mysql_fetch_object($s)){
echo "<b><font color=green>ID</font></b> <font color=darkred>: $users->id</font><br>";
echo "<b><font color=green>Nick</font></b> <font color=darkred>: $users->username </font><br>";
echo "<br><font color=red>_______________________________</font><br>";
}
?>
HATA VERIYOR! COZUM PLS :(
_____________________________