Raymonf
Raymonf

Reputation: 112

Everything is stacking together?

I am here once again with a problem. [:S] Everything is stacking together! Here's the code:

while ($row = mysql_fetch_array($data)) {
   echo "<div id='blPost'>".
        "<a href='read.php?pageid={$row['id']}'>".
        "{$row['title']}</a> | Date: {$row['date']}".
        "<div class='sep' />";
   $sbstS = substr($row['data'],0,500);
   echo $sbstS;
   echo '</div>';

The problem is, everything is stacking together! If someone could help, here's my testing server. This is the development server I'm using. I've already fiddled with it a few times. This is a 1 day outdated version of the CMS. It uses the same functions and everything, but missing the images, such as the potatoes. Thanks.

Upvotes: 0

Views: 41

Answers (3)

Konstantin Pozhidaev
Konstantin Pozhidaev

Reputation: 517

You should to use

 mysql_fetch_assoc($data)

for using

$row['id']

that syntax. http://php.net/manual/en/function.mysql-fetch-assoc.php

Upvotes: 0

Lawrence Cherone
Lawrence Cherone

Reputation: 46660

its bunched because of the height attribute in the .sep class in your css

Upvotes: 1

vancoder
vancoder

Reputation: 178

Your first blPost div is never closed.

<div class="sep" />

is not valid. You need to close your divs correctly.

Upvotes: 0

Related Questions