Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] Rangi
-LUQash--
post
Post #1





Goście







No więc chiałbym zrobic system rang na podobieństwo phpbb ale mam pewien problem --' , że wyświetla mi tylko pierwsze dwie rangi, a poźniej bezwzględnie na ilość napisanych postów jest ta druga ; d

  1. <?php
  2. <--- kod --->
  3. function rangi($posty)
  4. {
  5. if ($posty < 499) return "lol";
  6. if ($posty >= 500 return "lol2";
  7. if ($posty >= 5000 return "lol3";
  8. if ($posty >= 10000) return "lol4";
  9. }
  10. <--- dalsza część kodu --->
  11. ?>


PS: nie smiac sie bo ja jestem w tym newbie ; (
Go to the top of the page
+Quote Post

Posty w temacie
- LUQash-   [php] Rangi   17.08.2006, 17:56:29
- - xberus   [PHP] pobierz, plaintext <?php<--- kod ---...   17.08.2006, 18:16:38
- - UDAT   [PHP] pobierz, plaintext <?php<--- kod ---...   17.08.2006, 19:17:18


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: 23.08.2025 - 18:48