<?php $result = mysql_query("SELECT nick, imie, nazwisko, email, telefon, kierunek, semestr, grupa, indeks, informacje FROM ProKontaker"); printf("Imie: %s Nazwisko: %s E-Mail: %s Telefon: %s", $row["imie"], $row["nazwisko"], $row["email"], $row["telefon"]); printf("Kierunek: %s Semestr: %s Grupa: %s Indeks: %s ", $row["kierunek"], $row["semestr"], $row["grupa"], $row["indeks"]); } ?>
Zmienna nick (z bazy sql) zawiera ID usera.
Wyświetlać wyświetla jednakże są to wszystkie rekordy w bazie i dodatkowo wszystko jest w jednej kupie:
Imie: asdfas Nazwisko: asdfasdf E-Mail: Telefon: 0000000Kierunek: Informatyka Semestr: 5 Grupa: 1 Indeks: 32340 Informacje: Imie: asdfa Nazwisko: gwawge E-Mail: tasdf@gmail.com Telefon:2341341Kierunek: Informatyka Semestr: 5 Grupa: 1 Indeks: 32340 Informacje: Pseudonim Imie: wgegr Nazwisko: dwergwr E-Mail: Telefon: 0Kierunek: Semestr: 0 Grupa: 0 Indeks: 0 Informacje: Imie: 1 Nazwisko: 1 E-Mail: kjhkjh Telefon: 0Kierunek: 1 Semestr: 1 Grupa: 1 Indeks: 1 Informacje: kjhkjh
Próbowałem wstawić \n <br> itp ale niechcą się porostawiać do nowych linii
