Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Bugi w parserze, robi się śmietnik?
erix
post
Post #1





Grupa: Moderatorzy
Postów: 15 467
Pomógł: 1451
Dołączył: 25.04.2005
Skąd: Szczebrzeszyn/Rzeszów




http://forum.php.pl/index.php?s=&showt...st&p=537834

Post a'la powyższy. Czy to ludzie wklejają jakieś śmieci, czy skrypt forum robi bałagan w listingach?
Go to the top of the page
+Quote Post
Piniek
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 463
Pomógł: 49
Dołączył: 27.12.2007
Skąd: Warszawa

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


to parser robi ten śmietnik, dzieję się tak przy edycji posta...
Chyba parser dwa razy zamienia znaki na encję... i wychodzi śmietnik <- ale to tylko przypuszczenia..
Go to the top of the page
+Quote Post
bim2
post
Post #3





Grupa: Zarejestrowani
Postów: 1 873
Pomógł: 152
Dołączył: 9.04.2006
Skąd: Berlin

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


No właśnie to się dziwnie zachowuje. Tak samo jak mam linka, to jak robie EDIT i daje zapisz, to mi wstawia <a href=""> ;/
Go to the top of the page
+Quote Post
erix
post
Post #4





Grupa: Moderatorzy
Postów: 15 467
Pomógł: 1451
Dołączył: 25.04.2005
Skąd: Szczebrzeszyn/Rzeszów




Czy ktoś z administracji planuje coś z tym fantem zrobić?
Go to the top of the page
+Quote Post
itsme
post
Post #5





Grupa: Zarząd
Postów: 1 512
Pomógł: 2
Dołączył: 22.04.2002
Skąd: Koszalin




Cytat(erix @ 9.12.2008, 17:07:34 ) *
Czy ktoś z administracji planuje coś z tym fantem zrobić?

nie
Go to the top of the page
+Quote Post
erix
post
Post #6





Grupa: Moderatorzy
Postów: 15 467
Pomógł: 1451
Dołączył: 25.04.2005
Skąd: Szczebrzeszyn/Rzeszów




Cóż, ale bug jest coraz bardziej dotkliwy...

Np. http://forum.php.pl/index.php?s=&showt...st&p=550328
Go to the top of the page
+Quote Post
piotrooo89
post
Post #7


Newsman


Grupa: Moderatorzy
Postów: 4 005
Pomógł: 548
Dołączył: 7.04.2008
Skąd: Trzebinia/Kraków




zgadzam się z erix'em jest to dość uciążliwe... nowi lekko się gubią :|
Go to the top of the page
+Quote Post
nevt
post
Post #8





Grupa: Przyjaciele php.pl
Postów: 1 595
Pomógł: 282
Dołączył: 24.09.2007
Skąd: Reda, Pomorskie.

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


Cytat(erix @ 9.12.2008, 17:07:34 ) *
Czy ktoś z administracji planuje coś z tym fantem zrobić?

Cytat(itsme @ 9.12.2008, 17:46:16 ) *
nie

Czy ktoś z grupy developerów planuje coś z tym fantem zrobić?
Go to the top of the page
+Quote Post
kwiateusz
post
Post #9


Admin Techniczny


Grupa: Administratorzy
Postów: 2 072
Pomógł: 93
Dołączył: 5.07.2005




tak, pracuje nad tym (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) ba nawet tym razem nie rzucam słów na wiatr (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)

brosiłbym o kilka przykłądowych błędnie parsowanych kodow (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) bo na localu widze działa całkiem sprawnie
Go to the top of the page
+Quote Post
piotrooo89
post
Post #10


Newsman


Grupa: Moderatorzy
Postów: 4 005
Pomógł: 548
Dołączył: 7.04.2008
Skąd: Trzebinia/Kraków




proszę:

Kod
<?php
$result = mysql_query('SELECT type, name FROM menu') or die(mysql_error());

if ($result) {
      while ($r=mysql_fetch_array($result))
       {  
                 echo '\n';
         echo $r['name'].'\n';
        
$result_1 = mysql_query('SELECT txt.txt_id, txt.menid, txt.alias, menu_links.anchor, menu_links.adres, menu_links.type FROM txt LEFT JOIN menu_links ON (txt.menid=menu_links.type) WHERE txt.menid=\"'.$r['type'].'\" AND menu_links.type=\"'.$r['type'].'\"') or die(mysql_error());
    
          while ($r1=mysql_fetch_array($result_1))
          {
         echo '[url=\"http://forum.php.pl/index.php?i=%27.$r1%5B%27txt_id%27%5D.%27\"]ť '.$r1['alias'].'[/url]\n';
               while ($r2=mysql_fetch_array($result_1))
               {
               echo '[url=\"http://.$r2%5b%27menu_links.adres%27%5d/\"]ť '.$r2['menu_links.anchor'].'[/url]\n';
               }
          }
        echo '\n';
            }
   }
?>


a tak w php:

  1. <?php
  2. $result = mysql_query('SELECT type, name FROM menu') or die(mysql_error());
  3.  
  4. if ($result) {
  5.      while ($r=mysql_fetch_array($result))
  6.       {  
  7.                 echo '\n';
  8.         echo $r['name'].'\n';
  9.        
  10. $result_1 = mysql_query('SELECT txt.txt_id, txt.menid, txt.alias, menu_links.anchor, menu_links.adres, menu_links.type FROM txt LEFT JOIN menu_links ON (txt.menid=menu_links.type) WHERE txt.menid=\"'.$r['type'].'\" AND menu_links.type=\"'.$r['type'].'\"') or die(mysql_error());
  11.    
  12.          while ($r1=mysql_fetch_array($result_1))
  13.          {
  14.         echo 'ť '.$r1['alias'].'\n';
  15.               while ($r2=mysql_fetch_array($result_1))
  16.               {
  17.               echo 'ť '.$r2['menu_links.anchor'].'\n';
  18.               }
  19.          }
  20.        echo '\n';
  21.            }
  22.   }
  23. ?>
Go to the top of the page
+Quote Post
kwiateusz
post
Post #11


Admin Techniczny


Grupa: Administratorzy
Postów: 2 072
Pomógł: 93
Dołączył: 5.07.2005




oba sa takie same rozumiem ze code jak i php to psuje? prosiłbym na codepaste czy podobny serwis to wrzucić (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post
erix
post
Post #12





Grupa: Moderatorzy
Postów: 15 467
Pomógł: 1451
Dołączył: 25.04.2005
Skąd: Szczebrzeszyn/Rzeszów




Dalej coś nie tak: http://forum.php.pl/index.php?s=&showt...st&p=550544
Go to the top of the page
+Quote Post

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: 25.12.2025 - 07:42