Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

4 Stron V   1 2 3 > »   
Reply to this topicStart new topic
> [PHP][MYSQL] Kategorie w menu
Ziom73
post
Post #1





Grupa: Zarejestrowani
Postów: 140
Pomógł: 1
Dołączył: 8.04.2009
Skąd: Polanica Zdrój | Poznań | Wrocław

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


Mam cms download, plik index.php:
  1. <?php
  2. /*------------------------------------*
  3.  
  4.     Copyrights: Rafal Brzezinski
  5.     <a href=\"http://rafal-brzezinski.pl\" target=\"_blank\">http://rafal-brzezinski.pl</a>
  6.     
  7. *------------------------------------*/
  8.  
  9. include './config.php';
  10. mysql_connect($dbhost, $dbuser, $dbpass)
  11.    or die('Nieudane polaczenie z baza danych...');
  12.  
  13.    or die('Nie udalo sie wybrac bazy danych...');
  14.  
  15. include './header.php';
  16.  
  17. echo '<h1>Kategorie plików</h1>';
  18.  
  19. $result = mysql_query("SELECT * FROM download_categories");
  20. if(mysql_num_rows($result)==0)
  21. {
  22.    echo '<p>Brak kategorii!</p>';
  23. }
  24. else
  25. {
  26.    while($row = mysql_fetch_array($result))
  27.    {
  28.        if($row['id_cat']==0) $kategorie_glowne[$row['id']] = Array('nazwa' => stripslashes($row['nazwa']), 'ilosc' => $row['ilosc']);
  29.        else $kategorie_podrzedne[$row['id']] = Array('id_cat' => $row['id_cat'], 'nazwa' => stripslashes($row['nazwa']), 'ilosc' => $row['ilosc']);
  30.    }
  31.  
  32.    foreach($kategorie_glowne as $id_cat => $nazwa_kat)
  33.    {
  34.        echo '<p><a href="cat.php?id='.$id_cat.'"><b>'.$nazwa_kat['nazwa'].'</b></a> ('.$nazwa_kat['ilosc'].')<br />';
  35.        if(count($kategorie_podrzedne)>0)
  36.        {
  37.            foreach($kategorie_podrzedne as $id_cat2 => $cat)
  38.            {
  39.                if($id_cat==$cat['id_cat'])
  40.                {
  41.                    echo '<a href="cat.php?id='.$id_cat2.'">&raquo; '.$cat['nazwa'].'</a> ('.$cat['ilosc'].')<br />';
  42.                }    
  43.            }    
  44.        }
  45.        else echo '&raquo; Brak podkategorii!';
  46.        echo '</p>';
  47.    }
  48. }
  49.  
  50. include './footer.php';
  51.  
  52.  
  53. ?>


I chciałem go przerobić, żeby był includowany na innej stronie w menu:

  1. <link href="style.css" rel="stylesheet" type="text/css" />
  2. <div id="newst-bg">
  3. <div id="newst">
  4. <div id="news-bg">
  5. <div id="news">
  6. <center>test test test<br />test</center>
  7.   </div>
  8. </div>
  9. <div id="stopka-bg">
  10. <div id="stopka">
  11.    <img src="images/stopka.png" />
  12.   </div>
  13. </div>
  14. <div id="menus-bg">
  15. <div id="menus">
  16.     <div id="main">
  17.        <div id="menu2">
  18.            <div class="box2">
  19.                <h2>. . : :Downloads: : . .</h2>
  20.                <ul>
  21.    <?PHP
  22. include '/download/config.php';
  23.        while($row = mysql_fetch_array($result))
  24.    {
  25.        if($row['id_cat']==0) $kategorie_glowne[$row['id']] = Array('nazwa' => stripslashes($row['nazwa']), 'ilosc' => $row['ilosc']);
  26.        else $kategorie_podrzedne[$row['id']] = Array('id_cat' => $row['id_cat'], 'nazwa' => stripslashes($row['nazwa']), 'ilosc' => $row['ilosc']);
  27.    }
  28.    
  29. foreach($kategorie_glowne as $id_cat => $nazwa_kat)
  30.    {
  31.                    echo '<li><a href="?id='.$id_cat.'">'.$nazwa_kat['nazwa'].' ('.$nazwa_kat['ilosc'].')</a></li>';
  32.    }
  33. ob_end_flush();    
  34. ?>    
  35.                </ul>
  36.            </div>
  37.        </div>
  38.    </div>
  39.   </div>
  40. </div>
  41.   </div>
  42. </div>
  43. <br /><br /><br /><br />



Błąd:
Cytat
Warning: include(/download/config.php) [function.include]: failed to open stream: No such file or directory in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 28

Warning: include() [function.include]: Failed opening '/download/config.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 28

Notice: Undefined variable: result in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 29

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 29

Notice: Undefined variable: kategorie_glowne in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 35

Warning: Invalid argument supplied for foreach() in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 35

Warning: mysql_close(): no MySQL-Link resource supplied in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 39

index.php jest w /downloads/index.php
config.php jest w /downloads/config.php
downloads.php jest w /includes/news_bg/download.php

Ten post edytował Ziom73 4.08.2009, 23:21:37
Go to the top of the page
+Quote Post
iVorIus
post
Post #2





Grupa: Zarejestrowani
Postów: 145
Pomógł: 18
Dołączył: 11.11.2008
Skąd: Pwo

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


Literówka {?} :

  1. <?php
  2. include '/download/config.php';
  3. ?>


Cytat
config.php jest w /downloads/config.php
Go to the top of the page
+Quote Post
Ziom73
post
Post #3





Grupa: Zarejestrowani
Postów: 140
Pomógł: 1
Dołączył: 8.04.2009
Skąd: Polanica Zdrój | Poznań | Wrocław

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


Sorki pomyliłem się ;/

index.php jest w /download/index.php
config.php jest w /download/config.php
Go to the top of the page
+Quote Post
iVorIus
post
Post #4





Grupa: Zarejestrowani
Postów: 145
Pomógł: 18
Dołączył: 11.11.2008
Skąd: Pwo

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


Okej, ale jeszcze raz, powoli, jaki efekt chcesz uzyskać?

Ten post edytował iVorIus 4.08.2009, 13:53:32
Go to the top of the page
+Quote Post
Ziom73
post
Post #5





Grupa: Zarejestrowani
Postów: 140
Pomógł: 1
Dołączył: 8.04.2009
Skąd: Polanica Zdrój | Poznań | Wrocław

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


Chcę, aby wszystkie kategorie w downloads były w tym menu. Ilość plików w kategoriach, i nazwy.
Go to the top of the page
+Quote Post
iVorIus
post
Post #6





Grupa: Zarejestrowani
Postów: 145
Pomógł: 18
Dołączył: 11.11.2008
Skąd: Pwo

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


Możesz pokazać strukture plików i katalogów?
Go to the top of the page
+Quote Post
Ziom73
post
Post #7





Grupa: Zarejestrowani
Postów: 140
Pomógł: 1
Dołączył: 8.04.2009
Skąd: Polanica Zdrój | Poznań | Wrocław

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


Pliki są dostępne tutaj: http://rafal-brzezinski.pl/files/download.rar
Go to the top of the page
+Quote Post
iVorIus
post
Post #8





Grupa: Zarejestrowani
Postów: 145
Pomógł: 18
Dołączył: 11.11.2008
Skąd: Pwo

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


Grr, albo już muszę iść spać, albo nadal nie rozumiem twojego problemu (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) .

Z tego co teraz wynika z plików, podajesz złą ścieżkę do inkludowania - plik config.php jest w tym samym katalogu co plik, który go wczytuje, czyli inedx.php . Więc po co dawać ścieżkę 'downloads/config.php' ?

Ten post edytował iVorIus 4.08.2009, 21:53:18
Go to the top of the page
+Quote Post
Ziom73
post
Post #9





Grupa: Zarejestrowani
Postów: 140
Pomógł: 1
Dołączył: 8.04.2009
Skąd: Polanica Zdrój | Poznań | Wrocław

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


No bo includuję z pliku, który jest w /includes/news_bg/download.php
Go to the top of the page
+Quote Post
iVorIus
post
Post #10





Grupa: Zarejestrowani
Postów: 145
Pomógł: 18
Dołączył: 11.11.2008
Skąd: Pwo

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


  1. <?php
  2. include('../download/config.php');
  3. ?>

{?}

I spróbuj pokombinować z ~adresowanie względne

Ten post edytował iVorIus 4.08.2009, 22:30:17
Go to the top of the page
+Quote Post
Ziom73
post
Post #11





Grupa: Zarejestrowani
Postów: 140
Pomógł: 1
Dołączył: 8.04.2009
Skąd: Polanica Zdrój | Poznań | Wrocław

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


Wkleiłem to i:

  1. <?php
  2. Warning: include(../download/config.php) [function.include]: failed to open stream: No such file or directory in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 28
  3.  
  4. Warning: include() [function.include]: Failed opening '../download/config.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 28
  5.  
  6. Notice: Undefined variable: result in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 29
  7.  
  8. Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 29
  9.  
  10. Notice: Undefined variable: kategorie_glowne in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 35
  11.  
  12. Warning: Invalid argument supplied for foreach() in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 35
  13.  
  14. Warning: mysql_close(): no MySQL-Link resource supplied in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 39
  15. ?>
Go to the top of the page
+Quote Post
iVorIus
post
Post #12





Grupa: Zarejestrowani
Postów: 145
Pomógł: 18
Dołączył: 11.11.2008
Skąd: Pwo

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


Drzewo dokumentów wygląda tak:

index.php
config.php
-includes
--news_bg
---download.php

?.?

Jeżeli tak, to powinno działać.

Drzewo dokumentów wygląda tak:

index.php
config.php
-includes
--news_bg
---download.php

?.?

Jeżeli tak, to powinno działać.
Jeżeli nie, to rozpisz jak dokładnie są rozmieszczone te pliki.
Go to the top of the page
+Quote Post
Ziom73
post
Post #13





Grupa: Zarejestrowani
Postów: 140
Pomógł: 1
Dołączył: 8.04.2009
Skąd: Polanica Zdrój | Poznań | Wrocław

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


Pliki:

strona.pl/downloads/index.php

strona.pl/downloads/config.php

strona.pl/includes/news_bg/download.php

w innych katalogach są ;/
Go to the top of the page
+Quote Post
iVorIus
post
Post #14





Grupa: Zarejestrowani
Postów: 145
Pomógł: 18
Dołączył: 11.11.2008
Skąd: Pwo

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


  1. <?php
  2. include('../../download/config.php');
  3. ?>


Ten post edytował iVorIus 4.08.2009, 23:16:43
Go to the top of the page
+Quote Post
Ziom73
post
Post #15





Grupa: Zarejestrowani
Postów: 140
Pomógł: 1
Dołączył: 8.04.2009
Skąd: Polanica Zdrój | Poznań | Wrocław

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


Cytat
Notice: Undefined variable: result in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 29

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 29

Notice: Undefined variable: kategorie_glowne in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 35

Warning: Invalid argument supplied for foreach() in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 35

Warning: mysql_close(): no MySQL-Link resource supplied in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 39


Chyba problem z include znikną ;]

Ten post edytował Ziom73 4.08.2009, 23:19:31
Go to the top of the page
+Quote Post
iVorIus
post
Post #16





Grupa: Zarejestrowani
Postów: 145
Pomógł: 18
Dołączył: 11.11.2008
Skąd: Pwo

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


Inkludy zniknęły, teraz kombinuj resztę (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif)

A ja chyba pomogłem (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif)
Go to the top of the page
+Quote Post
Ziom73
post
Post #17





Grupa: Zarejestrowani
Postów: 140
Pomógł: 1
Dołączył: 8.04.2009
Skąd: Polanica Zdrój | Poznań | Wrocław

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


No właśnie, co dalej, hehe ;]
Jeszcze kobinuję żeby dać na sam początek
  1. <?php
  2. ?>


A resztę daj w echo

Ale coś mi się zdaję, że nie zadziała ;/

Zrobiłem tak:
  1. <?php
  2. error_reporting(E_ALL); // poziom raportowania, <a href=\"http://pl.php.net/manual/pl/function.error-reporting.php\" target=\"_blank\">http://pl.php.net/manual/pl/function.error-reporting.php</a>
  3. ini_set('display_errors', 1);
  4. ?>
  5. <?PHP
  6.  
  7. echo "<link href='style.css' rel='stylesheet' type='text/css' />\n";
  8. echo "<div id='newst-bg'>\n";
  9. echo " <div id='newst'>\n";
  10. echo "<div id='news-bg'>\n";
  11. echo " <div id='news'>\n";
  12. echo "<center>test test test<br />test</center>\n";
  13. echo "   </div>\n";
  14. echo "</div>\n";
  15. echo "<div id='stopka-bg'>\n";
  16. echo " <div id='stopka'>\n";
  17. echo "<img src='images/stopka.png' alt="Powered By Ziom73 And PHPLogin, ˆ2008-2009" />\n";
  18. echo "</div>\n";
  19. echo "</div>\n";
  20. echo "<div id='menus-bg'>\n";
  21. echo " <div id='menus'>\n";
  22. echo "     <div id='main'>\n";
  23. echo "        <div id='menu2'>\n";
  24. echo "            <div class='box2'>\n";
  25. echo "                <h2>. . : :Downloads: : . .</h2>\n";
  26. echo "                <ul>\n";
  27. include('../../download/config.php');
  28.        while($row = mysql_fetch_array($result))
  29.    {
  30.        if($row['id_cat']==0) $kategorie_glowne[$row['id']] = Array('nazwa' => stripslashes($row['nazwa']), 'ilosc' => $row['ilosc']);
  31.        else $kategorie_podrzedne[$row['id']] = Array('id_cat' => $row['id_cat'], 'nazwa' => stripslashes($row['nazwa']), 'ilosc' => $row['ilosc']);
  32.    }
  33.    
  34. foreach($kategorie_glowne as $id_cat => $nazwa_kat)
  35.    {
  36.                    echo "<li><a href="?id='.$id_cat.'">'.$nazwa_kat['nazwa'].' ('.$nazwa_kat['ilosc'].')</a></li>";
  37.    }    
  38.                echo "</ul>\n";
  39.            echo "</div>\n";
  40.        echo "</div>\n";
  41.    echo "</div>\n";
  42. echo "<div>\n";
  43. echo " </div>\n";
  44. echo "   </div>\n";
  45. echo "</div>\n";
  46. echo "<br /><br /><br /><br />\n";
  47.  
  48. ob_end_flush();    
  49. ?>



Błąd:
Cytat
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 19
Go to the top of the page
+Quote Post
iVorIus
post
Post #18





Grupa: Zarejestrowani
Postów: 145
Pomógł: 18
Dołączył: 11.11.2008
Skąd: Pwo

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


Najważniejszy problem rozwiązany, noc jest długa, więc jak do rana nic nie napiszesz to znaczy, że uporałeś się z problemem (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif)

Linia 19
  1. <?php
  2. echo "<img src='images/stopka.png' alt=\"Powered By Ziom73 And PHPLogin, �2008-2009\" />\n";
  3. ?>


Ten post edytował iVorIus 4.08.2009, 23:39:45
Go to the top of the page
+Quote Post
Ziom73
post
Post #19





Grupa: Zarejestrowani
Postów: 140
Pomógł: 1
Dołączył: 8.04.2009
Skąd: Polanica Zdrój | Poznań | Wrocław

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


Zrobiłem tak:
  1. <?php
  2. error_reporting(E_ALL); // poziom raportowania, <a href=\"http://pl.php.net/manual/pl/function.error-reporting.php\" target=\"_blank\">http://pl.php.net/manual/pl/function.error-reporting.php</a>
  3. ini_set('display_errors', 1);
  4. ?>
  5. <?PHP
  6.  
  7. echo "<link href='style.css' rel='stylesheet' type='text/css' />\n";
  8. echo "<div id='newst-bg'>\n";
  9. echo " <div id='newst'>\n";
  10. echo "<div id='\news-bg'>\n";
  11. echo " <div id='news'>\n";
  12. echo "<center>test test test<br />test</center>\n";
  13. echo "   </div>\n";
  14. echo "</div>\n";
  15. echo "<div id='stopka-bg'>\n";
  16. echo " <div id='stopka'>\n";
  17. echo "<img src='images/stopka.png' alt='Powered By Ziom73 And PHPLogin, Š2008-2009' />\n";
  18. echo "</div>\n";
  19. echo "</div>\n";
  20. echo "<div id='menus-bg'>\n";
  21. echo " <div id='menus'>\n";
  22. echo "     <div id='main'>\n";
  23. echo "        <div id='menu2'>\n";
  24. echo "            <div class='box2'>\n";
  25. echo "                <h2>. . : :Downloads: : . .</h2>\n";
  26. echo "                <ul>\n";
  27. include('../../download/config.php');
  28.        while($row = mysql_fetch_array($result))
  29.    {
  30.        if($row['id_cat']==0) $kategorie_glowne[$row['id']] = Array('nazwa' => stripslashes($row['nazwa']), 'ilosc' => $row['ilosc']);
  31.        else $kategorie_podrzedne[$row['id']] = Array('id_cat' => $row['id_cat'], 'nazwa' => stripslashes($row['nazwa']), 'ilosc' => $row['ilosc']);
  32.    }
  33.    
  34. foreach($kategorie_glowne as $id_cat => $nazwa_kat)
  35.    {
  36.                    echo "<li><a href="?id='.$id_cat.'">'.$nazwa_kat['nazwa'].' ('.$nazwa_kat['ilosc'].')</a></li>";
  37.    }    
  38.                echo "</ul>\n";
  39.            echo "</div>\n";
  40.        echo "</div>\n";
  41.    echo "</div>\n";
  42. echo "<div>\n";
  43. echo " </div>\n";
  44. echo "   </div>\n";
  45. echo "</div>\n";
  46. echo "<br /><br /><br /><br />\n";
  47.  
  48. ob_end_flush();    
  49. ?>


I wyskoczył następny błąd ;/
Cytat
Parse error: syntax error, unexpected '=' in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 38


A jak dam w tej lini:

  1. <?php
  2. echo "<li><a href='?id='.$id_cat.''>'.$nazwa_kat['nazwa'].' ('.$nazwa_kat['ilosc'].')</a></li>";
  3. ?>


To wywala:
Cytat
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 38


Ten post edytował Ziom73 4.08.2009, 23:50:59
Go to the top of the page
+Quote Post
iVorIus
post
Post #20





Grupa: Zarejestrowani
Postów: 145
Pomógł: 18
Dołączył: 11.11.2008
Skąd: Pwo

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


  1. <?php
  2. echo '<li><a href="?id=' . $id_cat . '"> ' . $nazwa_kat['nazwa'] . '(' . $nazwa_kat['ilosc'] . ')</a></li>';
  3. ?>
Go to the top of the page
+Quote Post
Ziom73
post
Post #21





Grupa: Zarejestrowani
Postów: 140
Pomógł: 1
Dołączył: 8.04.2009
Skąd: Polanica Zdrój | Poznań | Wrocław

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


Chyba jest ok ;]

Następne błędy ;/
Cytat
Notice: Undefined variable: result in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 30

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 30

Notice: Undefined variable: kategorie_glowne in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 36

Warning: Invalid argument supplied for foreach() in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 36





Warning: mysql_close(): no MySQL-Link resource supplied in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 50
Go to the top of the page
+Quote Post
iVorIus
post
Post #22





Grupa: Zarejestrowani
Postów: 145
Pomógł: 18
Dołączył: 11.11.2008
Skąd: Pwo

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


  1. <?php
  2. $id = (int)$_GET['id'];
  3. ?>

Na:
  1. <?php
  2. $id = $_GET['id'];
  3. ?>


Ten post edytował iVorIus 5.08.2009, 00:03:20
Go to the top of the page
+Quote Post
Ziom73
post
Post #23





Grupa: Zarejestrowani
Postów: 140
Pomógł: 1
Dołączył: 8.04.2009
Skąd: Polanica Zdrój | Poznań | Wrocław

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


Nie mogę znaleźć skryptu
  1. <?php
  2. $id = (int)$_GET['id'];
  3. ?>


Wpisuję w szukaj int, i nie znalazł, wpisuję GET, i również nie znalazł.

Mógłbyś mi podać nr. linii gdzie to jest?
Go to the top of the page
+Quote Post
iVorIus
post
Post #24





Grupa: Zarejestrowani
Postów: 145
Pomógł: 18
Dołączył: 11.11.2008
Skąd: Pwo

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


Z błędu wychodzi na linie 30, ale w pliku download.php jest to linia 18 .
Go to the top of the page
+Quote Post
Ziom73
post
Post #25





Grupa: Zarejestrowani
Postów: 140
Pomógł: 1
Dołączył: 8.04.2009
Skąd: Polanica Zdrój | Poznań | Wrocław

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


Linia 18 to:
  1. <?php
  2. echo " <div id='stopka'>\n";
  3. ?>

A 30 to:
  1. <?php
  2. while($row = mysql_fetch_array($result))
  3. ?>


Nie ma ;/
Go to the top of the page
+Quote Post
iVorIus
post
Post #26





Grupa: Zarejestrowani
Postów: 145
Pomógł: 18
Dołączył: 11.11.2008
Skąd: Pwo

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


Linia 28 {?} coś koło 30, nie mam gotowych plików, to Ty jesteś autorem skryptu, poszukaj (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif)
Go to the top of the page
+Quote Post
Ziom73
post
Post #27





Grupa: Zarejestrowani
Postów: 140
Pomógł: 1
Dołączył: 8.04.2009
Skąd: Polanica Zdrój | Poznań | Wrocław

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


28 to
Cytat
echo " <ul>\n";


A koło 30 nie ma nic podobnego co pisałeś ;p

Jedynie coś tutaj:
  1. <?php
  2. {
  3.        if($row['id_cat']==0) $kategorie_glowne[$row['id']] = Array('nazwa' => stripslashes($row['nazwa']), 'ilosc' => $row['ilosc']);
  4.        else $kategorie_podrzedne[$row['id']] = Array('id_cat' => $row['id_cat'], 'nazwa' => stripslashes($row['nazwa']), 'ilosc' => $row['ilosc']);
  5.    }
  6. ?>


a z $id to tylko to:
  1. <?php
  2. foreach($kategorie_glowne as $id_cat => $nazwa_kat)
  3.    {
  4.              echo '<li><a href="?id=' . $id_cat . '"> ' . $nazwa_kat['nazwa'] . '(' . $nazwa_kat['ilosc'] . ')</a></li>';
  5.    }
  6. ?>


Ten post edytował Ziom73 5.08.2009, 00:23:27
Go to the top of the page
+Quote Post
iVorIus
post
Post #28





Grupa: Zarejestrowani
Postów: 145
Pomógł: 18
Dołączył: 11.11.2008
Skąd: Pwo

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


Jejku : P

Poszukaj $id = (int)$_GET['id'];

Ja to znalazłem w plikach, które przesłałeś w: includes/news_bg/download.php
Go to the top of the page
+Quote Post
Ziom73
post
Post #29





Grupa: Zarejestrowani
Postów: 140
Pomógł: 1
Dołączył: 8.04.2009
Skąd: Polanica Zdrój | Poznań | Wrocław

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


Gdzie ty to widzisz?!
Ja szukam w pliku przez ftp:
  1. <?php
  2. $id = (int)$_GET['id'];
  3. ?>

i nie ma. Szukam na tamtej stronie gdzie podawałem pliki, i też nie ma takiego kodu!

ps. mam przeglądarkę Google Chrome ;p
Go to the top of the page
+Quote Post
iVorIus
post
Post #30





Grupa: Zarejestrowani
Postów: 145
Pomógł: 18
Dołączył: 11.11.2008
Skąd: Pwo

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


download.php
  1. <?php
  2. /*------------------------------------*
  3.  
  4.     Copyrights: Rafal Brzezinski
  5.     <a href=\"http://rafal-brzezinski.pl\" target=\"_blank\">http://rafal-brzezinski.pl</a>
  6.     
  7. *------------------------------------*/
  8.  
  9. include './config.php';
  10. mysql_connect($dbhost, $dbuser, $dbpass)
  11.    or die('Nieudane polaczenie z baza danych...');
  12.  
  13.    or die('Nie udalo sie wybrac bazy danych...');
  14.  
  15. $id = (int)$_GET['id'];
  16.    
  17. $result = mysql_query("SELECT * FROM download WHERE id='$id'");
  18. $row = mysql_fetch_array($result);
  19.  
  20. if(mysql_query("UPDATE download SET pobran=pobran+1 WHERE id=$id")) header("Location: ".$row['adres']);
  21.  
  22.  
  23. ?>
Go to the top of the page
+Quote Post
Ziom73
post
Post #31





Grupa: Zarejestrowani
Postów: 140
Pomógł: 1
Dołączył: 8.04.2009
Skąd: Polanica Zdrój | Poznań | Wrocław

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


Zamieniłem, ale to nic nie dało, gdyż ten plik download.php z katalogu download, czyli z tego cms nie jest includowany w moim pliku...

Ten post edytował Ziom73 5.08.2009, 00:45:30
Go to the top of the page
+Quote Post
iVorIus
post
Post #32





Grupa: Zarejestrowani
Postów: 145
Pomógł: 18
Dołączył: 11.11.2008
Skąd: Pwo

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


Zostaw zmianę i pokaż jakie błędy wyświetla
Go to the top of the page
+Quote Post
Ziom73
post
Post #33





Grupa: Zarejestrowani
Postów: 140
Pomógł: 1
Dołączył: 8.04.2009
Skąd: Polanica Zdrój | Poznań | Wrocław

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


Cytat
Notice: Undefined variable: result in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 30

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 30

Notice: Undefined variable: kategorie_glowne in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 36

Warning: Invalid argument supplied for foreach() in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 36





Warning: mysql_close(): no MySQL-Link resource supplied in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 50



błąd dotyczy pliku download.php w katalogu news_bg, a nie cms, czyli w katalogu download.
Go to the top of the page
+Quote Post
iVorIus
post
Post #34





Grupa: Zarejestrowani
Postów: 145
Pomógł: 18
Dołączył: 11.11.2008
Skąd: Pwo

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


Okej, mój plik download ma 28 linijek, podaj kod download.php, z którego korzystasz .
Go to the top of the page
+Quote Post
Ziom73
post
Post #35





Grupa: Zarejestrowani
Postów: 140
Pomógł: 1
Dołączył: 8.04.2009
Skąd: Polanica Zdrój | Poznań | Wrocław

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


  1. <?php
  2. error_reporting(E_ALL); // poziom raportowania, <a href=\"http://pl.php.net/manual/pl/function.error-reporting.php\" target=\"_blank\">http://pl.php.net/manual/pl/function.error-reporting.php</a>
  3. ini_set('display_errors', 1);
  4. ?>
  5. <?PHP
  6.  
  7. echo "<link href='style.css' rel='stylesheet' type='text/css' />\n";
  8. echo "<div id='newst-bg'>\n";
  9. echo " <div id='newst'>\n";
  10. echo "<div id='\news-bg'>\n";
  11. echo " <div id='news'>\n";
  12. echo "<center>test test test<br />test</center>\n";
  13. echo "   </div>\n";
  14. echo "</div>\n";
  15. echo "<div id='stopka-bg'>\n";
  16. echo " <div id='stopka'>\n";
  17. echo "<img src='images/stopka.png' alt='Powered By Ziom73 And PHPLogin, ˆ2008-2009' />\n";
  18. echo "</div>\n";
  19. echo "</div>\n";
  20. echo "<div id='menus-bg'>\n";
  21. echo " <div id='menus'>\n";
  22. echo "     <div id='main'>\n";
  23. echo "        <div id='menu2'>\n";
  24. echo "            <div class='box2'>\n";
  25. echo "                <h2>. . : :Downloads: : . .</h2>\n";
  26. echo "                <ul>\n";
  27. include('../../download/config.php');
  28.        while($row = mysql_fetch_array($result))
  29.    {
  30.        if($row['id_cat']==0) $kategorie_glowne[$row['id']] = Array('nazwa' => stripslashes($row['nazwa']), 'ilosc' => $row['ilosc']);
  31.        else $kategorie_podrzedne[$row['id']] = Array('id_cat' => $row['id_cat'], 'nazwa' => stripslashes($row['nazwa']), 'ilosc' => $row['ilosc']);
  32.    }
  33.    
  34. foreach($kategorie_glowne as $id_cat => $nazwa_kat)
  35.    {
  36.              echo '<li><a href="?id=' . $id_cat . '"> ' . $nazwa_kat['nazwa'] . '(' . $nazwa_kat['ilosc'] . ')</a></li>';
  37.    }    
  38.                echo "</ul>\n";
  39.            echo "</div>\n";
  40.        echo "</div>\n";
  41.    echo "</div>\n";
  42. echo "<div>\n";
  43. echo " </div>\n";
  44. echo "   </div>\n";
  45. echo "</div>\n";
  46. echo "<br /><br /><br /><br />\n";
  47.  
  48. ob_end_flush();    
  49. ?>


to jest w strona.pl/includes/news_bg/download.php

a to co ma 28 linijek to jest w strona.pl/download/download.php

Ten post edytował Ziom73 5.08.2009, 00:57:20
Go to the top of the page
+Quote Post
Fafu
post
Post #36





Grupa: Zarejestrowani
Postów: 243
Pomógł: 33
Dołączył: 30.01.2008
Skąd: Wrocław

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


jako autor skryptu mówię, że jeśli zmienisz:
  1. <?php
  2. $id = (int)$_GET['id'];
  3. ?>

na
  1. <?php
  2. $id = $_GET['id'];
  3. ?>

to jesteś zchakierowany (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif)

Prawdopodobnie coś nietak z połączeniem z bazą danych.

w download.php jest chyba pobieranie pliku jeśli dobrze pamiętam.

Ten post edytował Fafu 5.08.2009, 00:59:19
Go to the top of the page
+Quote Post
iVorIus
post
Post #37





Grupa: Zarejestrowani
Postów: 145
Pomógł: 18
Dołączył: 11.11.2008
Skąd: Pwo

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


Dodaj po 29 linijce:
  1. <?php
  2. $result = mysql_query("SELECT * FROM download_categories");
  3. ?>


@Fafu: masz racje (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif) teraz już widzę różnicę w plikach (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg)

Ten post edytował iVorIus 5.08.2009, 01:01:42
Go to the top of the page
+Quote Post
Ziom73
post
Post #38





Grupa: Zarejestrowani
Postów: 140
Pomógł: 1
Dołączył: 8.04.2009
Skąd: Polanica Zdrój | Poznań | Wrocław

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


Po include dodałem:
  1. <?php
  2. $result = mysql_query("SELECT * FROM download_categories");
  3. ?>


Błędy:
Cytat
Warning: mysql_query() [function.mysql-query]: Access denied for user 'www-data'@'localhost' (using password: NO) in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 30

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 30

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 31

Notice: Undefined variable: kategorie_glowne in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 37

Warning: Invalid argument supplied for foreach() in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 37





Warning: mysql_close(): no MySQL-Link resource supplied in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 51
Go to the top of the page
+Quote Post
Fafu
post
Post #39





Grupa: Zarejestrowani
Postów: 243
Pomógł: 33
Dołączył: 30.01.2008
Skąd: Wrocław

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


  1. <?php
  2. $result = mysql_query("SELECT * FROM download_categories");
  3. ?>

przed tym dałbym
  1. <?php
  2. mysql_connect($dbhost, $dbuser, $dbpass)
  3.    or die('Nieudane polaczenie z baza danych...');
  4.  
  5.    or die('Nie udalo sie wybrac bazy danych...');
  6. ?>
Go to the top of the page
+Quote Post
Ziom73
post
Post #40





Grupa: Zarejestrowani
Postów: 140
Pomógł: 1
Dołączył: 8.04.2009
Skąd: Polanica Zdrój | Poznań | Wrocław

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


Cytat
Nieudane polaczenie z baza danych...


Ale są poprawnie wpisane dane, bo na index.php hula ;]

Ale ten skrypt dać przed czy po include? bo jak dam przed to mniej błędów (IMG:http://forum.php.pl/style_emoticons/default/haha.gif)

Ten post edytował Ziom73 5.08.2009, 01:11:46
Go to the top of the page
+Quote Post
iVorIus
post
Post #41





Grupa: Zarejestrowani
Postów: 145
Pomógł: 18
Dołączył: 11.11.2008
Skąd: Pwo

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


Masz na pewno poprawne dane w configu ?

Ten post edytował iVorIus 5.08.2009, 18:19:34
Go to the top of the page
+Quote Post
Fafu
post
Post #42





Grupa: Zarejestrowani
Postów: 243
Pomógł: 33
Dołączył: 30.01.2008
Skąd: Wrocław

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


w config.php masz dane do połączenia czyli wiadomo że PO include
Go to the top of the page
+Quote Post
Ziom73
post
Post #43





Grupa: Zarejestrowani
Postów: 140
Pomógł: 1
Dołączył: 8.04.2009
Skąd: Polanica Zdrój | Poznań | Wrocław

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


Mówiłem, że mam dobrze, bo jak bym miał, źle to bym nie dodawał kategorii.

Zrobiłem ;]
Poprawny kod to:
  1. <?php
  2. error_reporting(E_ALL); // poziom raportowania, <a href=\"http://pl.php.net/manual/pl/function.error-reporting.php\" target=\"_blank\">http://pl.php.net/manual/pl/function.error-reporting.php</a>
  3. ini_set('display_errors', 1);
  4. ?>
  5. <?PHP
  6.  
  7. echo "<link href='style.css' rel='stylesheet' type='text/css' />\n";
  8. echo "<div id='newst-bg'>\n";
  9. echo " <div id='newst'>\n";
  10. echo "<div id='\news-bg'>\n";
  11. echo " <div id='news'>\n";
  12. echo "<center>test test test<br />test</center>\n";
  13. echo "   </div>\n";
  14. echo "</div>\n";
  15. echo "<div id='stopka-bg'>\n";
  16. echo " <div id='stopka'>\n";
  17. echo "<img src='images/stopka.png' alt='Powered By Ziom73 And PHPLogin, ˆ2008-2009' />\n";
  18. echo "</div>\n";
  19. echo "</div>\n";
  20. echo "<div id='menus-bg'>\n";
  21. echo " <div id='menus'>\n";
  22. echo "     <div id='main'>\n";
  23. echo "        <div id='menu2'>\n";
  24. echo "            <div class='box2'>\n";
  25. echo "                <h2>. . : :Downloads: : . .</h2>\n";
  26. echo "                <ul>\n";
  27. include('../../download/config.php');
  28. mysql_connect($dbhost, $dbuser, $dbpass)
  29.   or die('Nieudane polaczenie z baza danych...');
  30.  
  31.   or die('Nie udalo sie wybrac bazy danych...');
  32. $result = mysql_query("SELECT * FROM download_categories");
  33.        while($row = mysql_fetch_array($result))
  34.    {
  35.        if($row['id_cat']==0) $kategorie_glowne[$row['id']] = Array('nazwa' => stripslashes($row['nazwa']), 'ilosc' => $row['ilosc']);
  36.        else $kategorie_podrzedne[$row['id']] = Array('id_cat' => $row['id_cat'], 'nazwa' => stripslashes($row['nazwa']), 'ilosc' => $row['ilosc']);
  37.    }
  38.    
  39. foreach($kategorie_glowne as $id_cat => $nazwa_kat)
  40.    {
  41.              echo '<li><a href="?id=' . $id_cat . '"> ' . $nazwa_kat['nazwa'] . '(' . $nazwa_kat['ilosc'] . ')</a></li>';
  42.    }    
  43.                echo "</ul>\n";
  44.            echo "</div>\n";
  45.        echo "</div>\n";
  46.    echo "</div>\n";
  47. echo "<div>\n";
  48. echo " </div>\n";
  49. echo "   </div>\n";
  50. echo "</div>\n";
  51. echo "<br /><br /><br /><br />\n";
  52.  
  53. ob_end_flush();    
  54. ?>


Jadnak menu szlak trafiło ;/
te linki nie są w menu tylko są wypunktowane ;/

Ten post edytował Ziom73 5.08.2009, 01:16:13
Go to the top of the page
+Quote Post
Fafu
post
Post #44





Grupa: Zarejestrowani
Postów: 243
Pomógł: 33
Dołączył: 30.01.2008
Skąd: Wrocław

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


Kod
ul, ul li {
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
}

w css

( http://www.kurshtml.boo.pl/css/pionowe_menu,menu.html )
Go to the top of the page
+Quote Post
Ziom73
post
Post #45





Grupa: Zarejestrowani
Postów: 140
Pomógł: 1
Dołączył: 8.04.2009
Skąd: Polanica Zdrój | Poznań | Wrocław

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


Dodałem i nadal jest tak w liście ;/

style.css menu:
  1. <?php
  2. #menu2 {
  3.    width: 150px;
  4. }
  5.  
  6. .box2 {
  7. }
  8.  
  9. #menu2 h2 {
  10.    margin: 0;
  11.    width: 150px;
  12.    height: 20px;
  13.    font: bold 12px/20px Arial, Helvetica, sans-serif;
  14.    text-align: center;
  15.    color: White;
  16.    background: url(/images/nagl_menu.gif);
  17. }
  18.  
  19. #menu2 ul {
  20.    list-style: none;
  21.    margin: 0 0 15px 0;
  22.    padding: 0;
  23.    background-color: #ECECEC;
  24.    border-bottom: 2px solid #FFB868;
  25.    border-left: 2px solid #FFB868;
  26.    border-right: 2px solid #FFB868;
  27. }
  28.  
  29. #menu2 ul li {
  30.    margin: 0;
  31.    padding: 0;
  32. }
  33.  
  34. #menu2 ul li a {
  35.    display: block;
  36.    margin: 0;
  37.    padding: 0 0 0 10px;
  38.    height: 20px;
  39.    font: 11px/20px Verdana, sans-serif;
  40.    text-align: left;
  41.    text-decoration: none;
  42.    color: #CD853F;
  43. }
  44.  
  45. #menu2 ul li a:hover {
  46.    text-decoration: none;
  47.    color: Black;
  48.    background: White;
  49. }
  50. ?>


Ten post edytował Ziom73 5.08.2009, 01:29:11
Go to the top of the page
+Quote Post
iVorIus
post
Post #46





Grupa: Zarejestrowani
Postów: 145
Pomógł: 18
Dołączył: 11.11.2008
Skąd: Pwo

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


Dobra chłopaki, wy się bawcie (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif) , myślę, że choć trochę pomogłem, ale teraz ide w `Kimono (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif)
Go to the top of the page
+Quote Post
Ziom73
post
Post #47





Grupa: Zarejestrowani
Postów: 140
Pomógł: 1
Dołączył: 8.04.2009
Skąd: Polanica Zdrój | Poznań | Wrocław

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


Cytat(iVorIus @ 5.08.2009, 02:30:39 ) *
Dobra chłopaki, wy się bawcie (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif) , myślę, że choć trochę pomogłem, ale teraz ide w `Kimono (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif)


Mi też się oczy same zamykają ;p, pomogłeś i to bardzo tak jak Fafu, dzięki wam za to, a ja będę jutro koło godz. 11:00
Dobranoc ;-)

EDIT:

Coś mnie się zdaję, że nie odczytuję style.css ;/ Dla tego nie ma menu.

Ten post edytował Ziom73 5.08.2009, 11:11:02
Go to the top of the page
+Quote Post
iVorIus
post
Post #48





Grupa: Zarejestrowani
Postów: 145
Pomógł: 18
Dołączył: 11.11.2008
Skąd: Pwo

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


To po otworzeniu strony "Pokaż źródło" i poszukaj css.
Go to the top of the page
+Quote Post
Ziom73
post
Post #49





Grupa: Zarejestrowani
Postów: 140
Pomógł: 1
Dołączył: 8.04.2009
Skąd: Polanica Zdrój | Poznań | Wrocław

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


Jest na źródle:
  1. <?php
  2. ><link href=&#092;'style.css' rel='stylesheet' type='text/css' />
  3. ?>
Go to the top of the page
+Quote Post
iVorIus
post
Post #50





Grupa: Zarejestrowani
Postów: 145
Pomógł: 18
Dołączył: 11.11.2008
Skąd: Pwo

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


Spróbuj dodać wewnętrzny styl,

  1. <style type="text/css">
  2. ul, ul li {
  3. itp itd......
  4. }
Go to the top of the page
+Quote Post
Ziom73
post
Post #51





Grupa: Zarejestrowani
Postów: 140
Pomógł: 1
Dołączył: 8.04.2009
Skąd: Polanica Zdrój | Poznań | Wrocław

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


Nie wiem za bardzo jak dodać styl w echo, ale zrobiłem tak:
  1. <?php
  2. echo "<style type='text/css'>";
  3.  
  4. #menu2 {
  5.    width: 150px;
  6. }
  7.  
  8. .box2 {
  9. }
  10.  
  11. #menu2 h2 {
  12.    margin: 0;
  13.    width: 150px;
  14.    height: 20px;
  15.    font: bold 12px/20px Arial, Helvetica, sans-serif;
  16.    text-align: center;
  17.    color: White;
  18.    background: url(/images/nagl_menu.gif);
  19. }
  20.  
  21. #menu2 ul {
  22.    list-style: none;
  23.    margin: 0 0 15px 0;
  24.    padding: 0;
  25.    background-color: #ECECEC;
  26.    border-bottom: 2px solid #FFB868;
  27.    border-left: 2px solid #FFB868;
  28.    border-right: 2px solid #FFB868;
  29. }
  30.  
  31. #menu2 ul li {
  32.    margin: 0;
  33.    padding: 0;
  34. }
  35.  
  36. #menu2 ul li a {
  37.    list-style: none;
  38.    display: block;
  39.    margin: 0;
  40.    padding: 0 0 0 10px;
  41.    height: 20px;
  42.    font: 11px/20px Verdana, sans-serif;
  43.    text-align: left;
  44.    text-decoration: none;
  45.    color: #CD853F;
  46. }
  47.  
  48. #menu2 ul li a:hover {
  49.    text-decoration: none;
  50.    color: Black;
  51.    background: White;
  52. }
  53.  
  54. echo "</style>\n";
  55. ?>


Ale nie działa ;/
Cytat
Parse error: syntax error, unexpected ':' in /var/www/virtual/thawsite.cba.pl/site.thawsite.cba.pl/includes/news_bg/download.php on line 11



ps. 11 linia to
  1. <?php
  2. width: 150px;
  3. ?>


Ten post edytował Ziom73 5.08.2009, 11:47:55
Go to the top of the page
+Quote Post
iVorIus
post
Post #52





Grupa: Zarejestrowani
Postów: 145
Pomógł: 18
Dołączył: 11.11.2008
Skąd: Pwo

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


http://www.kurshtml.boo.pl/css/index.html

Pomyśl, pokombinuj, poczytaj (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif)
Go to the top of the page
+Quote Post
Ziom73
post
Post #53





Grupa: Zarejestrowani
Postów: 140
Pomógł: 1
Dołączył: 8.04.2009
Skąd: Polanica Zdrój | Poznań | Wrocław

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


Już zrobiłem, żeby nie było błędów, ale nadal nie ma stylu menu ;/
  1. <?php
  2. error_reporting(E_ALL); // poziom raportowania, <a href=\"http://pl.php.net/manual/pl/function.error-reporting.php\" target=\"_blank\">http://pl.php.net/manual/pl/function.error-reporting.php</a>
  3. ini_set('display_errors', 1);
  4. ?>
  5. <?PHP
  6. echo "<style type='text/css'>";
  7.  
  8. #menu2 { width: 150px; }
  9.  
  10. #menu2 h2 {    margin: 0;    width: 150px;    height: 20px;    font: bold 12px/20px Arial, Helvetica, sans-serif;    text-align: center;    color: White; background: url(/images/nagl_menu.gif); }
  11.  
  12. #menu2 ul {    list-style: none;    margin: 0 0 15px 0;    padding: 0;    background-color: #ECECEC;    border-bottom: 2px solid #FFB868;    border-left: 2px solid #FFB868;    border-right: 2px solid #FFB868; }
  13.  
  14. #menu2 ul li {    margin: 0;    padding: 0; }
  15.  
  16. #menu2 ul li a {    list-style: none;    display: block;    margin: 0;    padding: 0 0 0 10px;    height: 20px;    font: 11px/20px Verdana, sans-serif;    text-align: left;    text-decoration: none;    color: #CD853F; }
  17.  
  18. #menu2 ul li a:hover {    text-decoration: none;    color: Black;    background: White;}
  19.  
  20. echo "</style>\n";
  21. echo "<div id='newst-bg'>\n";
  22. echo " <div id='newst'>\n";
  23. echo "<div id='\news-bg'>\n";
  24. echo " <div id='news'>\n";
  25. echo "<center>test test test<br />test</center>\n";
  26. echo "   </div>\n";
  27. echo "</div>\n";
  28. echo "<div id='stopka-bg'>\n";
  29. echo " <div id='stopka'>\n";
  30. echo "<img src='images/stopka.png' alt='Powered By Ziom73 And PHPLogin, ˆ2008-2009' />\n";
  31. echo "</div>\n";
  32. echo "</div>\n";
  33. echo "<div id='menus-bg'>\n";
  34. echo " <div id='menus'>\n";
  35. echo "     <div id='main'>\n";
  36. echo "        <div id='menu2'>\n";
  37. echo "            <div class='box2'>\n";
  38. echo "                <h2>. . : :Downloads: : . .</h2>\n";
  39. echo "                <ul>\n";
  40. include('../../download/config.php');
  41. mysql_connect($dbhost, $dbuser, $dbpass)
  42.   or die('Nieudane polaczenie z baza danych...');
  43.  
  44.   or die('Nie udalo sie wybrac bazy danych...');
  45. $result = mysql_query("SELECT * FROM download_categories");
  46.        while($row = mysql_fetch_array($result))
  47.    {
  48.        if($row['id_cat']==0) $kategorie_glowne[$row['id']] = Array('nazwa' => stripslashes($row['nazwa']), 'ilosc' => $row['ilosc']);
  49.        else $kategorie_podrzedne[$row['id']] = Array('id_cat' => $row['id_cat'], 'nazwa' => stripslashes($row['nazwa']), 'ilosc' => $row['ilosc']);
  50.    }
  51.    
  52. foreach($kategorie_glowne as $id_cat => $nazwa_kat)
  53.    {
  54.              echo '<li><a href="?id=' . $id_cat . '"> ' . $nazwa_kat['nazwa'] . ' (' . $nazwa_kat['ilosc'] . ')</a></li>';
  55.    }    
  56.                echo "</ul>\n";
  57.            echo "</div>\n";
  58.        echo "</div>\n";
  59.    echo "</div>\n";
  60. echo "<div>\n";
  61. echo " </div>\n";
  62. echo "   </div>\n";
  63. echo "</div>\n";
  64. echo "<br /><br /><br /><br />\n";
  65.  
  66. ob_end_flush();    
  67. ?>
Go to the top of the page
+Quote Post
iVorIus
post
Post #54





Grupa: Zarejestrowani
Postów: 145
Pomógł: 18
Dołączył: 11.11.2008
Skąd: Pwo

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


Style umieszczasz w sekcji head.
Go to the top of the page
+Quote Post
Ziom73
post
Post #55





Grupa: Zarejestrowani
Postów: 140
Pomógł: 1
Dołączył: 8.04.2009
Skąd: Polanica Zdrój | Poznań | Wrocław

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


  1. <?php
  2. echo "<head><style type='text/css'>";
  3.  
  4. #menu2 { width: 150px; }
  5.  
  6. #menu2 h2 {    margin: 0;    width: 150px;    height: 20px;    font: bold 12px/20px Arial, Helvetica, sans-serif;    text-align: center;    color: White; background: url(/images/nagl_menu.gif); }
  7.  
  8. #menu2 ul {    list-style: none;    margin: 0 0 15px 0;    padding: 0;    background-color: #ECECEC;    border-bottom: 2px solid #FFB868;    border-left: 2px solid #FFB868;    border-right: 2px solid #FFB868; }
  9.  
  10. #menu2 ul li {    margin: 0;    padding: 0; }
  11.  
  12. #menu2 ul li a {    list-style: none;    display: block;    margin: 0;    padding: 0 0 0 10px;    height: 20px;    font: 11px/20px Verdana, sans-serif;    text-align: left;    text-decoration: none;    color: #CD853F; }
  13.  
  14. #menu2 ul li a:hover {    text-decoration: none;    color: Black;    background: White;}
  15.  
  16. echo "</style></head>\n";
  17. ?>


Nadal nie działa ;/

Kombinuję z:
style.php
  1. <?php
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-type" content="text/html; charset=iso-8859-2" />
  5. <style type="text/css">
  6. #menu2 {
  7.    width: 150px;
  8. }
  9.  
  10. .box2 {
  11. }
  12.  
  13. #menu2 h2 {
  14.    margin: 0;
  15.    width: 150px;
  16.    height: 20px;
  17.    font: bold 12px/20px Arial, Helvetica, sans-serif;
  18.    text-align: center;
  19.    color: White;
  20.    background: url(/images/nagl_menu.gif);
  21. }
  22.  
  23. #menu2 ul {
  24.    list-style: none;
  25.    margin: 0 0 15px 0;
  26.    padding: 0;
  27.    background-color: #ECECEC;
  28.    border-bottom: 2px solid #FFB868;
  29.    border-left: 2px solid #FFB868;
  30.    border-right: 2px solid #FFB868;
  31. }
  32.  
  33. #menu2 ul li {
  34.    margin: 0;
  35.    padding: 0;
  36. }
  37.  
  38. #menu2 ul li a {
  39.    list-style: none;
  40.    display: block;
  41.    margin: 0;
  42.    padding: 0 0 0 10px;
  43.    height: 20px;
  44.    font: 11px/20px Verdana, sans-serif;
  45.    text-align: left;
  46.    text-decoration: none;
  47.    color: #CD853F;
  48. }
  49.  
  50. #menu2 ul li a:hover {
  51.    text-decoration: none;
  52.    color: Black;
  53.    background: White;
  54. }
  55. </style>
  56. </head>
  57. <body>
  58. ?>


i

  1. <?php
  2. include './style.php';
  3. ?>


I nadal nie działa ;/

Ten post edytował Ziom73 5.08.2009, 15:41:43
Go to the top of the page
+Quote Post
iVorIus
post
Post #56





Grupa: Zarejestrowani
Postów: 145
Pomógł: 18
Dołączył: 11.11.2008
Skąd: Pwo

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


Kombinuj.
Go to the top of the page
+Quote Post
Fafu
post
Post #57





Grupa: Zarejestrowani
Postów: 243
Pomógł: 33
Dołączył: 30.01.2008
Skąd: Wrocław

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


Dodaj ten kod co ci tam dałem na koniec i wtedy sprawdź.
Go to the top of the page
+Quote Post
Ziom73
post
Post #58





Grupa: Zarejestrowani
Postów: 140
Pomógł: 1
Dołączył: 8.04.2009
Skąd: Polanica Zdrój | Poznań | Wrocław

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


Nadal jest tak jak było ;/
  1. <?php
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-type" content="text/html; charset=iso-8859-2" />
  5. <style type="text/css">
  6. #menu2 {
  7.    width: 150px;
  8. }
  9.  
  10. .box2 {
  11. }
  12.  
  13. #menu2 h2 {
  14.    margin: 0;
  15.    width: 150px;
  16.    height: 20px;
  17.    font: bold 12px/20px Arial, Helvetica, sans-serif;
  18.    text-align: center;
  19.    color: White;
  20.    background: url(/images/nagl_menu.gif);
  21. }
  22.  
  23. #menu2 ul {
  24.    list-style: none;
  25.    margin: 0 0 15px 0;
  26.    padding: 0;
  27.    background-color: #ECECEC;
  28.    border-bottom: 2px solid #FFB868;
  29.    border-left: 2px solid #FFB868;
  30.    border-right: 2px solid #FFB868;
  31. }
  32.  
  33. #menu2 ul li {
  34.    margin: 0;
  35.    padding: 0;
  36. }
  37.  
  38. #menu2 ul li a {
  39.    list-style: none;
  40.    display: block;
  41.    margin: 0;
  42.    padding: 0 0 0 10px;
  43.    height: 20px;
  44.    font: 11px/20px Verdana, sans-serif;
  45.    text-align: left;
  46.    text-decoration: none;
  47.    color: #CD853F;
  48. }
  49.  
  50. #menu2 ul li a:hover {
  51.    text-decoration: none;
  52.    color: Black;
  53.    background: White;
  54. }
  55. ul, ul li {
  56.    display: block;
  57.    list-style: none;
  58.    margin: 0;
  59.    padding: 0;
  60. }
  61. </style>
  62. </head>
  63. <body>
  64. ?>


Ten post edytował Ziom73 5.08.2009, 16:19:04
Go to the top of the page
+Quote Post
Fafu
post
Post #59





Grupa: Zarejestrowani
Postów: 243
Pomógł: 33
Dołączył: 30.01.2008
Skąd: Wrocław

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


U mnie działa: http://site.thawsite.cba.pl/includes/news_bg/download.php
Go to the top of the page
+Quote Post
Ziom73
post
Post #60





Grupa: Zarejestrowani
Postów: 140
Pomógł: 1
Dołączył: 8.04.2009
Skąd: Polanica Zdrój | Poznań | Wrocław

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


U mnie nie mam menu, są tylko gołe kategorie ;/
Go to the top of the page
+Quote Post
Fafu
post
Post #61





Grupa: Zarejestrowani
Postów: 243
Pomógł: 33
Dołączył: 30.01.2008
Skąd: Wrocław

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


U mnie tak to wygląda:
(IMG:http://i31.tinypic.com/o5ssc2.jpg)
więc chyba dobrze
Go to the top of the page
+Quote Post
Ziom73
post
Post #62





Grupa: Zarejestrowani
Postów: 140
Pomógł: 1
Dołączył: 8.04.2009
Skąd: Polanica Zdrój | Poznań | Wrocław

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


nie dobrze, bo ma być w menu zaraz dam ci stronkę...

http://site.thawsite.cba.pl/includes/news_bg/d2.php
Go to the top of the page
+Quote Post
lukada
post
Post #63





Grupa: Zarejestrowani
Postów: 38
Pomógł: 2
Dołączył: 4.02.2009

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


Z tego co widzę, to kategorie(test123 (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) ) są w menu i nic się nie rozlatuje.
Go to the top of the page
+Quote Post
Ziom73
post
Post #64





Grupa: Zarejestrowani
Postów: 140
Pomógł: 1
Dołączył: 8.04.2009
Skąd: Polanica Zdrój | Poznań | Wrocław

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


Cytat(lukada @ 5.08.2009, 23:16:27 ) *
Z tego co widzę, to kategorie(test123 (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) ) są w menu i nic się nie rozlatuje.



TO ma wyglądać tak jak TO
Go to the top of the page
+Quote Post
Fafu
post
Post #65





Grupa: Zarejestrowani
Postów: 243
Pomógł: 33
Dołączył: 30.01.2008
Skąd: Wrocław

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


zobacz w źródło strony -> backslashe
Go to the top of the page
+Quote Post
Ziom73
post
Post #66





Grupa: Zarejestrowani
Postów: 140
Pomógł: 1
Dołączył: 8.04.2009
Skąd: Polanica Zdrój | Poznań | Wrocław

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


Czyli mam pousuwać wszystkie "\", które widać w źródle strony?

EDIT wszytko hulla (IMG:http://forum.php.pl/style_emoticons/default/exclamation.gif)

Bardzo ci dziękuję!

Ten post edytował Ziom73 5.08.2009, 22:42:23
Go to the top of the page
+Quote Post
Fafu
post
Post #67





Grupa: Zarejestrowani
Postów: 243
Pomógł: 33
Dołączył: 30.01.2008
Skąd: Wrocław

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


tak, np
  1. <?php
  2. echo "     <div id='main'>\n";
  3. ?>

zamien na
  1. <?php
  2. echo "     <div id='main'>\n";
  3. ?>
Go to the top of the page
+Quote Post
lukada
post
Post #68





Grupa: Zarejestrowani
Postów: 38
Pomógł: 2
Dołączył: 4.02.2009

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


Albo wszystko potraktować stripslashes" title="Zobacz w manualu PHP" target="_manual - szybciej (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg) .
Go to the top of the page
+Quote Post
iVorIus
post
Post #69





Grupa: Zarejestrowani
Postów: 145
Pomógł: 18
Dołączył: 11.11.2008
Skąd: Pwo

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


Cytat
Albo wszystko potraktować stripslashes - szybciej winksmiley.jpg.


A co z \n po użyciu stripslashes ?

Wyjdzie n i wyskoczą błędy w html.
Go to the top of the page
+Quote Post
lukada
post
Post #70





Grupa: Zarejestrowani
Postów: 38
Pomógł: 2
Dołączył: 4.02.2009

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


Cytat(iVorIus @ 6.08.2009, 13:05:24 ) *
A co z \n po użyciu stripslashes ?

Wyjdzie n i wyskoczą błędy w html.

Z "\n" nie zostaje nic. Dla upewnienia sprawdziłem.
Go to the top of the page
+Quote Post
iVorIus
post
Post #71





Grupa: Zarejestrowani
Postów: 145
Pomógł: 18
Dołączył: 11.11.2008
Skąd: Pwo

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


Czyli źle jak nie zostaje nic, przecież \n jest po to, żeby uporządkować html, a po użyciu stripslashes jest bałagan.
Go to the top of the page
+Quote Post
Ziom73
post
Post #72





Grupa: Zarejestrowani
Postów: 140
Pomógł: 1
Dołączył: 8.04.2009
Skąd: Polanica Zdrój | Poznań | Wrocław

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


Chciałem dodać same podkategorie, jednak menu jest puste ;/
  1. <?php
  2. error_reporting(E_ALL); // poziom raportowania, <a href=\"http://pl.php.net/manual/pl/function.error-reporting.php\" target=\"_blank\">http://pl.php.net/manual/pl/function.error-reporting.php</a>
  3. ini_set('display_errors', 1);
  4. ?>
  5. <?PHP
  6. require_once '../../login/settings.php';
  7. $login->do_login ();
  8. include './style.php';
  9. include'../message_ie/ie.php';
  10. echo "<center><table><tr><td> \n";
  11. include'../user_info_panel/panel.php';
  12. echo "</td><td>\n";
  13. include'../top/top2.php';
  14. echo "</td></tr></table><br /><br />\n";
  15. echo "<div id='dowt-bg'>\n";
  16. echo " <div id='dowt'>\n";
  17. echo "<div id='news-bg'>\n";
  18. echo " <div id='news'>\n";
  19. echo "<center>test test test<br />test</center>\n";
  20. echo " </div>\n";
  21. echo "</div>\n";
  22. echo "<div id='stopka-bg'>\n";
  23. echo " <div id='stopka'>\n";
  24. echo "<img src='/images/stopka.png' alt='Powered By Ziom73 And PHPLogin, ˆ2008-2009' />\n";
  25. echo "</div>\n";
  26. echo "</div>\n";
  27. echo "<div id='menus-bg'>\n";
  28. echo " <div id='menus'>\n";
  29. echo " <div id='main'>\n";
  30. echo " <div id='menu2'>\n";
  31. echo " <div class='box2'>\n";
  32. echo " <h2>. . : :Downloads: : . .</h2>\n";
  33. echo " <ul>\n";
  34. include('../../download/config.php');
  35. mysql_connect($dbhost, $dbuser, $dbpass)
  36. or die('Nieudane polaczenie z baza danych...');
  37.  
  38. or die('Nie udalo sie wybrac bazy danych...');
  39. $result = mysql_query("SELECT * FROM download_categories");
  40. while($row = mysql_fetch_array($result))
  41. {
  42. if($row['id_cat']==0) $kategorie_glowne[$row['id']] = Array('nazwa' => stripslashes($row['nazwa']), 'ilosc' => $row['ilosc']);
  43. else $kategorie_podrzedne[$row['id']] = Array('id_cat' => $row['id_cat'], 'nazwa' => stripslashes($row['nazwa']), 'ilosc' => $row['ilosc']);
  44. }
  45. {
  46. foreach($kategorie_podrzedne as $id_cat2 => $cat)
  47. {
  48. if($id_cat==$cat['id_cat'])
  49. {
  50. echo '<li><a href="cat.php?id='.$id_cat2.'">'.$cat['nazwa'].' ('.$cat['ilosc'].') </a></li>';
  51. }
  52. }
  53. }
  54. echo "</ul>\n";
  55. echo "</div>\n";
  56. echo "</div>\n";
  57. echo "</div>\n";
  58. echo "<div>\n";
  59. echo " </div>\n";
  60. echo " </div>\n";
  61. echo "</div>\n";
  62. echo "<br /><br /><br /><br />\n";
  63.  
  64. ?>
Go to the top of the page
+Quote Post
Fafu
post
Post #73





Grupa: Zarejestrowani
Postów: 243
Pomógł: 33
Dołączył: 30.01.2008
Skąd: Wrocław

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


Dodaj jedną główną kategorie i później same podkategorie - tak ten skrypt jest zrobiony i musiałbyś go przerobić lub poszukać innego.
Go to the top of the page
+Quote Post
Ziom73
post
Post #74





Grupa: Zarejestrowani
Postów: 140
Pomógł: 1
Dołączył: 8.04.2009
Skąd: Polanica Zdrój | Poznań | Wrocław

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


Ok, menu zrobiłem jakoś. Nie chce zakałdać nowego tematu więc piszę następny problem ;p. Zrobiłem tak:
  1. <?php
  2. error_reporting(E_ALL); // poziom raportowania, <a href=\"http://pl.php.net/manual/pl/function.error-reporting.php\" target=\"_blank\">http://pl.php.net/manual/pl/function.error-reporting.php</a>
  3. ini_set('display_errors', 1);
  4. ?>
  5. <?PHP
  6. require_once '../../login/settings.php';
  7. $login->do_login ();
  8. include './style.php';
  9. include'../message_ie/ie.php';
  10. echo "<center><table><tr><td> \n";
  11. include'../user_info_panel/panel.php';
  12. echo "</td><td>\n";
  13. include'../top/top2.php';
  14. echo "</td></tr></table><br /><br />\n";
  15. echo "<div id='dowt-bg'>\n";
  16. echo " <div id='dowt'>\n";
  17. echo "<div id='news-bg'>\n";
  18. echo " <div id='news'>\n";
  19. include('../../download/config.php');
  20. mysql_connect($dbhost, $dbuser, $dbpass)
  21. or die('Nieudane polaczenie z baza danych...');
  22.  
  23. or die('Nie udalo sie wybrac bazy danych...');
  24. include ('../../download/header.php');
  25.  
  26. $id = (int)$_GET['id'];
  27. $result = mysql_query("SELECT * FROM download WHERE id_cat='$id' ORDER BY nazwa ASC");
  28. if(mysql_num_rows($result)!=0)
  29. {
  30. while($row = mysql_fetch_array($result))
  31. {
  32. echo '<p><a href="file.php?id='.$row['id'].'"><b>'.stripslashes($row['nazwa']).'</b></a> ('.date("d.m.Y, H:i", $row['data']).')<br />';
  33. echo stripslashes($row['opis']).'</p>';
  34. }
  35. }
  36. echo " </div>\n";
  37. echo "</div>\n";
  38. echo "<div id='stopka-bg'>\n";
  39. echo " <div id='stopka'>\n";
  40. echo "<img src='/images/stopka.png' alt='Powered By Ziom73 And PHPLogin, ˆ2008-2009' />\n";
  41. echo "</div>\n";
  42. echo "</div>\n";
  43. echo "<div id='menus-bg'>\n";
  44. echo " <div id='menus'>\n";
  45. echo " <div id='main'>\n";
  46. echo " <div id='menu2'>\n";
  47. echo " <div class='box2'>\n";
  48. echo " <h2>. . : :Downloads: : . .</h2>\n";
  49. echo " <ul>\n";
  50. $result = mysql_query("SELECT * FROM download_categories");
  51. while($row = mysql_fetch_array($result))
  52. {
  53. if($row['id_cat']==0) $kategorie_glowne[$row['id']] = Array('nazwa' => stripslashes($row['nazwa']), 'ilosc' => $row['ilosc']);
  54. else $kategorie_podrzedne[$row['id']] = Array('id_cat' => $row['id_cat'], 'nazwa' => stripslashes($row['nazwa']), 'ilosc' => $row['ilosc']);
  55. }
  56.  
  57. foreach($kategorie_glowne as $id_cat => $nazwa_kat)
  58. {
  59.  
  60. }
  61. if(count($kategorie_podrzedne)>0)
  62. {
  63. foreach($kategorie_podrzedne as $id_cat2 => $cat)
  64. {
  65. if($id_cat==$cat['id_cat'])
  66. {
  67. echo '<li><a href="?id='.$id_cat2.'"> ' .$cat['nazwa']. ' (' . $cat['ilosc'] . ')</a></li>';
  68. }
  69. }
  70. }
  71. echo "</ul>\n";
  72. echo "</div>\n";
  73. echo "</div>\n";
  74. echo "</div>\n";
  75. echo "<div>\n";
  76. echo " </div>\n";
  77. echo " </div>\n";
  78. echo "</div>\n";
  79. echo "<br /><br /><br /><br />\n";
  80.  
  81. ?>


1. Menu znikneło
2. Jakieś dziwne okno się pojawiło na górze strony.
3. Strona się rozjechała ;/

Zobacz: http://site.thawsite.cba.pl/includes/news_...loads.php?id=21

Ten post edytował Ziom73 10.08.2009, 14:21:06
Go to the top of the page
+Quote Post
Fifi209
post
Post #75





Grupa: Zarejestrowani
Postów: 4 655
Pomógł: 556
Dołączył: 17.03.2009
Skąd: Katowice

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


Przy takim mieszaniu html z php nie wróżę nic dobrego.

Sprawdź czy div'y masz dobrze ułożone i pozamykane.

W dodatku bardzo spodobał mi się link: Kontact - Jak kto woli, po polsku, po angielsku, a teraz nawet mieszanka.
Go to the top of the page
+Quote Post
Ziom73
post
Post #76





Grupa: Zarejestrowani
Postów: 140
Pomógł: 1
Dołączył: 8.04.2009
Skąd: Polanica Zdrój | Poznań | Wrocław

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


Zamknąłem 1 div było <div> zamiast </div>, dzięki za uwagę, ale nadal jest chaos ;/

EDIT: Już zrobiłem ;]
Go to the top of the page
+Quote Post

4 Stron V   1 2 3 > » 
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: 22.08.2025 - 22:42