Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [MySQL][PHP] While - dwa argumenty
Freequ
post
Post #1





Grupa: Zarejestrowani
Postów: 26
Pomógł: 0
Dołączył: 10.03.2008

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


Witam.
Jak zrobić, aby pętla while mogła wykonać dwa argumenty:
  1. i = 1;
  2. while($guild = mysql_fetch_array($query))
  3. if($guild['id'] > 260 ) {
  4. echo '<tr>
  5. <td> '.$i.' </td><td> '.$guild["name"].' </td><td> '.$guild["level"].' </td>
  6. </tr>';
  7. $i++;
  8. }


Chcę, aby pokazywało tylko 10 pierwszych wyników.
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 22.08.2025 - 11:33