Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [php][CMS][php-FUSION][Nowa Wtyczka], Brak tabeli
Earth
post 6.12.2006, 16:13:00
Post #1





Grupa: Zarejestrowani
Postów: 169
Pomógł: 2
Dołączył: 6.12.2006

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


Zacząłem tworzyć swojego pierwszego infusiona i mam problem przy skryptach nie pokazuje mi się tabela:

Przykład:
http://nfs-pl.ovh.org/infusions/nfs_racer_u2/ranking.php
Powinno być:
http://nfs-pl.ovh.org/viewpage.php?page_id=24


  1. <?php
  2. /*---------------------------------------------------+
  3. | php-Fusion 6 Content Management System
  4. +----------------------------------------------------+
  5. | Copyright Š 2002 - 2005 Nick Jones
  6. | <a href="http://www.php-fusion.co.uk/" target="_blank">http://www.php-fusion.co.uk/</a>
  7. +----------------------------------------------------+
  8. | Released under the terms & conditions of v2 of the
  9. | GNU General Public License. For details refer to
  10. | the included gpl.txt file or visit <a href="http://gnu.org" target="_blank">http://gnu.org</a>
  11. +----------------------------------------------------*/
  12. require_once "../../maincore.php";
  13. require_once BASEDIR."subheader.php";
  14. require_once BASEDIR."side_left.php";
  15.  
  16. openside("NFS Underground 2 Racer");
  17.  
  18. print ('
  19. <TABLE WIDTH="100%" BORDER="5" BORDERCOLOR="black">
  20. <TR BGCOLOR="#4D4D4D">
  21. <TD WIDTH="40%"><FONT color=white>Nick:</FONT></TD>
  22. <TD WIDTH="30%"><FONT color=white>GG:</FONT></TD>
  23. <TD WIDTH="15%"><FONT color=white>Ostatnio:</FONT></TD>
  24. <TD WIDTH="15%"><FONT color=white>Wynik:</FONT></TD>
  25. </TR>');
  26.  
  27. $query = "SELECT * FROM nfsu2_ranking";
  28. $result = mysql_query($query);
  29.  
  30.  
  31. while ($table = mysql_fetch_array($result))
  32. {
  33. echo "<TR>
  34. <td>".$table['nick']."</td>
  35. <td>".$table['gg']."</td>
  36. <td>".$table['ostatnio']."</td>
  37. <td>".$table['wynik']."</td>
  38. </TR>";
  39. }
  40.  
  41. print ('</TABLE>');
  42. closeside();
  43.  
  44.  
  45. require_once BASEDIR."side_right.php";
  46. require_once BASEDIR."footer.php";
  47. ?>


Ten post edytował Earth 6.12.2006, 16:38:01
Go to the top of the page
+Quote Post
nospor
post 6.12.2006, 16:15:08
Post #2





Grupa: Moderatorzy
Postów: 36 557
Pomógł: 6315
Dołączył: 27.12.2004




nie: *FROM
a: * FROM

ps: powiedz mi jeszcze czym sie roznią tresciowa oba linki co podales?

proszę poprawić tytuł o znacznik zgodnie z zasadami forum Przedszkole:
Temat: Tematyka i zasady panujace na forum Przedszkole


--------------------

"Myśl, myśl, myśl..." - Kubuś Puchatek || "Manual, manual, manual..." - Kubuś Programista
"Szukaj, szukaj, szukaj..." - Kubuś Odkrywca || "Debuguj, debuguj, debuguj..." - Kubuś Developer

Go to the top of the page
+Quote Post
Earth
post 6.12.2006, 16:19:10
Post #3





Grupa: Zarejestrowani
Postów: 169
Pomógł: 2
Dołączył: 6.12.2006

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


Przypatrz się dokładniej w jednym nie ma tabeli tej głębiej.

Na jednym linku skrypt jest na stronie informacyjnej CMS.
A na drugim jako infusion (wtyczka).
Go to the top of the page
+Quote Post
nospor
post 6.12.2006, 16:24:12
Post #4





Grupa: Moderatorzy
Postów: 36 557
Pomógł: 6315
Dołączył: 27.12.2004




Cytat
Przypatrz się dokładniej w jednym nie ma tabeli tej głębiej.
Widzisz, ale to ty powinienies od razu powiedziec czego mamy szukac, a nie my mamy sie grzebac nie wiadomo w czym.

I co, zmiana pomogla?


--------------------

"Myśl, myśl, myśl..." - Kubuś Puchatek || "Manual, manual, manual..." - Kubuś Programista
"Szukaj, szukaj, szukaj..." - Kubuś Odkrywca || "Debuguj, debuguj, debuguj..." - Kubuś Developer

Go to the top of the page
+Quote Post
Earth
post 6.12.2006, 16:37:21
Post #5





Grupa: Zarejestrowani
Postów: 169
Pomógł: 2
Dołączył: 6.12.2006

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


Niestety nie.
Go to the top of the page
+Quote Post
nospor
post 6.12.2006, 16:40:30
Post #6





Grupa: Moderatorzy
Postów: 36 557
Pomógł: 6315
Dołączył: 27.12.2004




Popraw na:
  1. <?php
  2. $result = mysql_query($query) or die(mysql_error());
  3. ?>


--------------------

"Myśl, myśl, myśl..." - Kubuś Puchatek || "Manual, manual, manual..." - Kubuś Programista
"Szukaj, szukaj, szukaj..." - Kubuś Odkrywca || "Debuguj, debuguj, debuguj..." - Kubuś Developer

Go to the top of the page
+Quote Post
Earth
post 6.12.2006, 16:51:46
Post #7





Grupa: Zarejestrowani
Postów: 169
Pomógł: 2
Dołączył: 6.12.2006

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


Niestety nie pomaga, ale błąd leży po stronie czegoś innego.

Tak wygląda czysty plik:
http://nfs-pl.ovh.org/infusions/nfs_racer_u2/czysta.php

i też nie ma tabeli.
Z kodów innych infusion dla php-fusion.
Wyczytałem, że kod powinien zawierać:

openside("NFS Underground 2 Racer");
closeside();

ale u mnie tabela i tak się nie pokazuje. A jak zrobię sam za pomocą html <TABLE> to tabela nie będzie wyglądać jak w pozostałych skryptach. Związane jest to z theme CMS'a.

  1. <?php
  2. /*---------------------------------------------------+
  3. | php-Fusion 6 Content Management System
  4. +----------------------------------------------------+
  5. | Copyright Š 2002 - 2005 Nick Jones
  6. | <a href="http://www.php-fusion.co.uk/" target="_blank">http://www.php-fusion.co.uk/</a>
  7. +----------------------------------------------------+
  8. | Released under the terms & conditions of v2 of the
  9. | GNU General Public License. For details refer to
  10. | the included gpl.txt file or visit <a href="http://gnu.org" target="_blank">http://gnu.org</a>
  11. +----------------------------------------------------*/
  12. require_once "../../maincore.php";
  13. require_once BASEDIR."subheader.php";
  14. require_once BASEDIR."side_left.php";
  15.  
  16. openside("NFS Underground 2 Racer");
  17.  
  18. closeside();
  19.  
  20.  
  21. require_once BASEDIR."side_right.php";
  22. require_once BASEDIR."footer.php";
  23.  
  24. ?>


// Problem rozwiązałem wystarczyło zmienić side na table.

Ten post edytował Earth 7.12.2006, 15:33:05
Go to the top of the page
+Quote Post

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 Wersja Lo-Fi Aktualny czas: 14.07.2025 - 23:48