Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Eregi i rekord
fiflus
post 5.05.2005, 16:29:56
Post #1





Grupa: Zarejestrowani
Postów: 78
Pomógł: 0
Dołączył: 19.09.2003

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


kod:


  1. <?php
  2. for($inde=0; $inde<count($albums); $inde++){
  3. $grupa = explode(&#092;"|\", $albums[$inde]);
  4. if(eregi($_POST['search'], $grupa[0])){
  5. print $grupa[0];
  6. }
  7. }
  8. ?>


Jak wydobyć ile znaleziono w danej bazie rekordów - proszę o pomoc

Ten post edytował fiflus 5.05.2005, 16:30:27


--------------------
Fajne to forum :)
Go to the top of the page
+Quote Post
Wave
post 5.05.2005, 16:44:22
Post #2





Grupa: Zarejestrowani
Postów: 332
Pomógł: 6
Dołączył: 13.01.2005

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


  1. <?php
  2. $count=0;
  3. for($inde=0; $inde<count($albums); $inde++){
  4. $grupa = explode(&#092;"|\", $albums[$inde]);
  5. if(eregi($_POST['search'], $grupa[0])){
  6. print $grupa[0];
  7. $count++;
  8. }
  9. }
  10. echo('Znaleziono '.$count.' pozycji');
  11. ?>


Ten post edytował Wave 5.05.2005, 16:44:59
Go to the top of the page
+Quote Post
fiflus
post 6.05.2005, 07:15:04
Post #3





Grupa: Zarejestrowani
Postów: 78
Pomógł: 0
Dołączył: 19.09.2003

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


Dziękuję - działa
  1. <?php
  2. $count
  3. ?>
smile.gif


--------------------
Fajne to forum :)
Go to the top of the page
+Quote Post

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 Wersja Lo-Fi Aktualny czas: 12.06.2025 - 12:56