"; if (is_numeric($id)==false){ SQLerror("Non Integer","Non integers are not allowed in the id field.
Back to home"); } $res = mysql_query("SELECT * FROM posts WHERE Topic=$id",$handle) or SQLerror("MySQL Query Error","Error on searching database.posts for '$id'"); // Get posts loop while ($hash = mysql_fetch_assoc($res)){ echo "User: {$hash[1]}"; echo "{$hash[2]}"; } echo ""; ?>