Elo, mam problem, otóż mi wyrównuje niepotrzebnie napis komentarze [0] do treści newsa.

Oto screen:
http://img84.imageshack.us/img84/3575/screenep5.jpg <-- link

Oto kod (to tylko wycinek, jest tutaj trochę burdel):
  1. <?php
  2. while ($row = mysql_fetch_array($result)) {
  3. echo '<p>
  4. <strong>'.$row[tytul].'</strong><br />';
  5. echo date('d.m.Y, H:i:s', $row[data_dodania]);
  6. echo '<br />Autor: <a href="forum/profile.php?mode=viewprofile&u='.$row[autor].'">'.$row[autor].'</a><br /><br />
  7. <table><tr><td valign="top">
  8. <img src="'.$row[miniaturka].'"></td>
  9. <td valign="top" style="color: #007981; font-size: 10pt; font-family: Verdana;"><p style="text-align: justify;">';
  10. echo substr ($row['tresc'], 0, 800);
  11. $length = strlen($row['tresc']);
  12.  
  13. if($length > 800) { 
  14. echo '...<br /></p>
  15. <p style="text-align: right;"><a href="news_id.php?id='.$row[id].'"><strong>[czytaj więcej...]</strong></a></p>'; 
  16. }
  17.  
  18. if($lenght < 800) {
  19. echo '</p>';
  20. }
  21.  
  22. if(800 > $lenght) { echo '<p style="text-align: right;"><a href="news_id.php?id='.$row[id].'#komentarze"><strong>komentarze [0]</strong></a></p>'; }
  23. }
  24. ?>


Doszedłem dlaczego nie działało tongue.gif

Ale dzięki za zajrzenie :]