$id=$_GET['id'];
$db = mysql_connect("localhost","innoterm","1010");
mysql_select_db ("innoterm") or die ("Cannot connect to database");
$query = "SELECT * FROM data WHERE id ='$id' ORDER BY id ASC LIMIT 20";
$result = mysql_query($query);
while($r=mysql_fetch_array($result))
{
$id=$r["id"];
$title=$r["title"];
$text=$r["text"];
$author=$r["author"];
$text = str_replace("\n", "
", $text);
$text = str_replace("", "", $text);
$text = str_replace("
", "", $text);
echo "$title
$text"; }
?>