jak zakomentuje ta kolumne:
Kod
echo "<div class='post_content'>" . $post_content . "</div>";
to dziala jak powinno.
czesc kodu odpowiadajaca za pokazywanie postow bez zakomentowanej tej linijki wyzej:
Kod
echo "<div class='wrapper1'>"; //div odpowiadający całemu głównemu kontemerowi
while($catrow = mysql_fetch_array($categorieslist))
{
$id = stripslashes($catrow['ID']);
$name = stripslashes($catrow['NAME']);
$post_count = stripslashes($catrow['POST_COUNT']);
echo "<div class='site1'>";
echo "<div class='name".$id."' ><div class='tytul'><h2> '> $name ".$id."</h2></div></div>";
echo "<br/>";
foreach($postrows as $postrow)
{
if ($id == stripslashes($postrow['ID']))
{
echo"<div id='news' class='news_". $id ."'>"; //Div dla posta
$post_title = stripslashes($postrow['POST_TITLE']);
$post_content = stripslashes($postrow['POST_CONTENT']);
$post_author = stripslashes($postrow['POST_AUTHOR']);
$post_date = stripslashes($postrow['POST_DATE']);
echo "<div class='post_title'><b> " .$post_title."</b></div>";
echo "<div class='post_content'>" . $post_content . "</div>";
echo "<br/>";
echo "Uzytkownik:<b>". $post_author . "</b>\n";
echo "Data:<b>" . $post_date . "</b>";
echo "<br/><br/></div>";
}
}
echo "</div>";
}
while($catrow = mysql_fetch_array($categorieslist))
{
$id = stripslashes($catrow['ID']);
$name = stripslashes($catrow['NAME']);
$post_count = stripslashes($catrow['POST_COUNT']);
echo "<div class='site1'>";
echo "<div class='name".$id."' ><div class='tytul'><h2> '> $name ".$id."</h2></div></div>";
echo "<br/>";
foreach($postrows as $postrow)
{
if ($id == stripslashes($postrow['ID']))
{
echo"<div id='news' class='news_". $id ."'>"; //Div dla posta
$post_title = stripslashes($postrow['POST_TITLE']);
$post_content = stripslashes($postrow['POST_CONTENT']);
$post_author = stripslashes($postrow['POST_AUTHOR']);
$post_date = stripslashes($postrow['POST_DATE']);
echo "<div class='post_title'><b> " .$post_title."</b></div>";
echo "<div class='post_content'>" . $post_content . "</div>";
echo "<br/>";
echo "Uzytkownik:<b>". $post_author . "</b>\n";
echo "Data:<b>" . $post_date . "</b>";
echo "<br/><br/></div>";
}
}
echo "</div>";
}
I po prostu nie potrafie znalezc bledu a za pewne jest to glupi blad