Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Sortowanie wyników TOP 10
filipsiu
post
Post #1





Grupa: Zarejestrowani
Postów: 150
Pomógł: 1
Dołączył: 2.07.2012
Skąd: localhost

Ostrzeżenie: (0%)
-----


Witajcie!
Robię TOP10:
posiadam sobie taki kod:
  1. <?php
  2. $results = mysql_query("SELECT user_name, user_points from users order by user_name DESC LIMIT 10");
  3. while ($row = mysql_fetch_array($results))
  4. {
  5. echo $row['user_name'];
  6. echo $row['user_points'];
  7. }
  8. ?>

lecz jedyne co on wyświetla to
Filipsiu51230
kiedy w bazie jest ok. 56 rekordów.
Struktura bazy:
user_id user_name user_password user_email user_regdate user_points


Co tu jest nie tak zapytanie ? czy wyświetlanie danych ?

Ten post edytował filipsiu 30.10.2012, 16:32:17
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 16.09.2025 - 08:52