Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Eregi i rekord
fiflus
post
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
Go to the top of the page
+Quote Post
Wave
post
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
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. ?>
(IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post

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: 2.09.2025 - 12:12