Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] Wybieranie rekordów z mysql
Hectic
post
Post #1





Grupa: Zarejestrowani
Postów: 256
Pomógł: 7
Dołączył: 1.01.2005

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


Mam taki cosik (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)

W bazie mysql, tabele dane:
Cytat
IMIE
ania
asia
ola

  1. <?php
  2.  
  3. $dane = mysql_query("SELECT IMIE FROM dane");
  4. $imie = mysql_fetch_array($dane);
  5.  
  6. $osoba1 = imie[0]; // wyświetla się ania
  7. $osoba2 = imie[0]; // wyświetla się ania
  8. $osoba3 = imie[0]; // wyświetla się ania
  9.  
  10. ?>


Jak wybrać kolejno ania, asia, ola? A nie same anie (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif)

Ten post edytował Hectic 25.04.2006, 18:19:35
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: 24.08.2025 - 07:37