Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] Zmienna
Lethys
post
Post #1





Grupa: Zarejestrowani
Postów: 642
Pomógł: 2
Dołączył: 9.03.2006

Ostrzeżenie: (30%)
XX---


Mam problem ze zmiennymi . W jednym pliku mam :

  1. <?php
  2. $nump = @mysql_num_rows(mysql_query("select * from players"));
  3. $numw = @mysql_num_rows(mysql_query("select * from equipment where type='W'"));
  4. $numa = @mysql_num_rows(mysql_query("select * from equipment where type='A'"));
  5. print "<b>$nump</b> total players.<br>";
  6. print "<b>$numo</b> players online.<br>";
  7. print "<b>$numw</b> weapons.<br>";
  8. print "<b>$numa</b> armor.<br>";
  9. ?>


I chce zeby dane graczy,broni itp. byly wyswietlane w innym pliku np. index.php Co musze zrobic (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif)

Ten post edytował [Lethys] 22.03.2006, 21:00:00
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Lethys
post
Post #2





Grupa: Zarejestrowani
Postów: 642
Pomógł: 2
Dołączył: 9.03.2006

Ostrzeżenie: (30%)
XX---


Chodzi mi o to aby z pliku footer.php dzialal skrypt w index.php , ten skrypt to np. $nump
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: 10.10.2025 - 22:56