Just a small problem

Status
Not open for further replies.

Savallusion

#swipeproject
Jul 16, 2010
990
220
feu38f.png


I've echoed out a few divs, and it all aligns perfectly when i take the divs out of the echo. But for some reason it doesn't when i echo it out, it's also fetching information from a MySQL database. Here's the code where the problem lays within:
Code:
  $uploads = mysql_query('SELECT * FROM uploads ORDER BY id DESC LIMIT 10');
     $id = $_GET['id'];
 
     while($row = mysql_fetch_array($uploads)) {
       echo "<div class='archiveWrapper'><div id='archive'><a href='" . $row['link'] . "'><div class='archiveUpload'></div></a></div>";
       echo "<div class='archiveBtm'><a href='" . $row['link'] . "'>" . $row['name'] . "</a></div></div>";
     }
     if($id !== $id2) {
      echo "No files have been uploaded yet.";
     }

If you require any more codes, just ask. I'll gladly post the code you request to be able to help me with this problem.
 
Status
Not open for further replies.

Users who are viewing this thread

Top