<?
mysql_connect($hostname,$username,$password) or die ("do not connect database");
mysql_select_db($dbname) or die("do not select database");
$query="select * from story where id=$id";
$result=mysql_query($query);
while($row=mysql_fetch_array($result)){
$topic=$row[topic];
$story=$row[story];
?>
<?
$link = mysql_connect($hostname,$username,$password) or die(mysql_error());
mysql_select_db($dbname,$link) or die(mysql_error());
$query="select * from story where id=$id";
$result=mysql_query($query) or die(mysql_error());
while($row=mysql_fetch_array($result)){
$topic=$row[topic];
$story=$row[story];
?>
<?php
$link = mysql_connect($hostname,$username,$password) or die(mysql_error());
mysql_select_db($dbname,$link) or die(mysql_error());
$query="select * from story where id=$_REQUEST['id']";
$result=mysql_query($query) or die(mysql_error());
while($row=mysql_fetch_array($result)){
$topic=$row['topic'];
$story=$row['story'];
?>