Hi Thanks for that, i have it displaying now.
My next questions is now that I have the data displaying in an editable fashion, i have included the "updatei1.php" file but it just produces a plank screen. The first piece of code is editing area, the second is the update area. Are you able to assist?
<form action="updatei1.php" method="post">
<input type="hidden" name="id" value="<?php echo $row["id"] ?>" />
<input type="text" name="Title" value="<?php echo $row["Title"]?>" />
<input type="text" name="Subtitle" value="<?php echo $row["Subtitle"] ?>" />
<textarea name="Content" rows=10 cols=100><?php echo $row["Content"]?></textarea> </br>
Author <input type="text" name="Author" value="<?php echo $row["Author"] ?>" />
Date<input type="text" name="Date" value="<?php echo $row["Date"] ?>" />
<input type="submit" name="submit" />
<?
if ($_POST["$submit"])
{
$id = $_POST["id"];
$Title = $_POST["Title"];
$Subtitle = $_POST["Subtitle"];
$Content = $_POST["Content"];
$Author = $_POST["Author"];
$Date = $_POST["Date"];
$sql = "UPDATE indexinfo SET Title='$Title',Subtitle='$Subtitle',Content='$Content', Author='$Author', Date='$Date' WHERE id=1";
$result = mysql_query($sql);
echo "Thank you! Information updated.";
}
}
?>