Quote Originally Posted by Cory View Post
Try:
PHP Code: 
if(isset($_GET['id']) && is_numeric($_GET['id']) && strlen($_GET['id'] < 7)) { 
Hello,

Thanks for your help,

I also wanted to clarify, that i have two id fields on the table.

1 is "id" which is the id for a user who posts to the database
2 is "iid" which is the id for the post


I am now using this code:

<?php
include 'dbc.php';
?>
<?php
// First check if we have a id of a download to show in detail
if(isset($_GET['iid']) && is_numeric($_GET['iid']) && strlen($_GET['iid'] < 7)) {
$sql = mysql_query("SELECT id, title,description,download,date FROM index WHERE iid=".$_GET['iid']);
// output your detailed info here. Smart to check if it exists first. Throw a message if it doesn't exist and if it does show the download.
}
// if no download number then we'll just show the list as normal
else
{
$sql = mysql_query("SELECT id, title FROM index LIMIT 30");
while($row = mysql_fetch_assoc($sql))
{
echo '<tr><td>'.$row['id'].'</td><td><a href="index.php?id='.$row['id'].'">'.$row['title'].'</a></td><td>'.$row['description'].'</td><td>'.$row['download'].'</td></tr>';
}
}
?>


After i execute it i get this:

Just a blank screen: