Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php/sql]poprzedni, następny rekord
wert1
post
Post #1





Grupa: Zarejestrowani
Postów: 175
Pomógł: 2
Dołączył: 22.03.2007
Skąd: localhost

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


Witajcie,
wie ktos jak wyciagnąć poprzedni rekord z tabeli i nastepny rekord z tabeli ?

mój kod sql:
  1. <?php
  2. $query5="SELECT template_name FROM phpbb_themes WHERE themes_id='".$_GET['s']."'";
  3. $result5=mysql_query($query5);
  4. list($name) = mysql_fetch_array ($result5, MYSQL_NUM);
  5. ?>

chodzi o to żeby wyświetlało nazwe stylu przed tym stylem,
i nazwę stylu który znajduje sie po nim


--------------------
"Homo sum, humani nihil a me alienum puto."
"Necessitas ultimum et maximum telum est."
"Ventem seminabunt et turbinem metent."
"Gallia est omnis divisa in partes tres..."
Go to the top of the page
+Quote Post

Posty w temacie


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 Aktualny czas: 22.08.2025 - 08:06