Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Forum PHP MySQL
Mlodycompany
post
Post #1





Grupa: Zarejestrowani
Postów: 910
Pomógł: 44
Dołączył: 20.02.2008
Skąd: Łódź

Ostrzeżenie: (20%)
X----


Elo. Wpadłem na pomysł, ze zrobie własne forum. No i na wstepie napotkałem juz problem. Działa mi zakładanie nowych tematów oraz pisanie postów. Problem w tym, ze zamiast wyswietlac ostatniego postu wyswietla mi pierwszy z danego tematu. Co zrobic by wyswietlal sie ostatni post?(IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Mlodycompany
post
Post #2





Grupa: Zarejestrowani
Postów: 910
Pomógł: 44
Dołączył: 20.02.2008
Skąd: Łódź

Ostrzeżenie: (20%)
X----


  1. <?
  2. include('include/functions.php');
  3. include('../mysql.php');
  4. include('include/mysql.php');
  5. ?>
  6. <html>
  7. <head>
  8. <meta http-equiv="Content-type" content="text/html; charset=iso-8859-2">
  9. <link rel="stylesheet" href="../style.css" type="text/css">
  10. </head>
  11. <table width="800" cellpadding="1" cellspacing="1" align="center" class="tabela2" border="0"> 
  12. <?
  13. include('include/header.php');
  14. ?>
  15. <tr>
  16. <th colspan="8" class="cat3">Town Of Laugh</th>
  17. </tr>
  18.  
  19. <?
  20. while($kategoria = mysql_fetch_array($kategorie)){
  21. $posty_temat = mysql_query ("SELECT * FROM forum_posty WHERE `topic` = '".$temat[0]."'") or die (mysql_error());
  22. $post_temat = mysql_fetch_array($posty_temat);
  23. $sql = 'SELECT * FROM `forum_posty` ORDER BY `tresc` DESC LIMIT 0, 1';
  24. <tr>
  25. <th width=46><img src="images/folder_new_big.gif"></th>
  26. <th><a href=topic.php?cat='.$kategoria[0].'>'.$kategoria[1].'</a></th>
  27. <th>Tematy</th>
  28. <th>Posty</th>
  29. <th>'.$post_temat[2].'</th>
  30. </tr>
  31. ');
  32. }
  33. ?>
  34. </table>
  35. </html>

to jest z indexu
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: 7.10.2025 - 04:37