Hi All,
the following code will allow you to type content, and saves it fine, but it just wont populate that paticular area with the current database entry.
Please can somebody advise.
Im sure i have missed something so simple.
<?php
$result = mysql_query("select * from `indexinfo` where id = 1");
$row = mysql_fetch_array($result);
{
?>
<form action="#" method="post">
<p><h2>EDIT ZONE 1:</h2></p>
<label>Title:<input type="text" name="Title" value="<?php echo $result['Title']; ?>" /></label><br />
<label>Subtitle: <input type="text" name="Subtitle" value="<?php echo $Subtitle; ?>" /></label><br />
<label>Content: <TEXTAREA name="Content" ROWS=10 COLS=100><?php echo $Content; ?></TEXTAREA><br />
<label>Author: <input type="text" name="Author" value="<?php echo $Author; ?>" /></label><br />
<label>Date: <input type="text" name="Date" value="<?php echo $Date; ?>" /></label><br />
<input type="hidden" name="id" value="<?php echo $id; ?>" />
<input type="submit" value="Submit" name="send" /></p>
</form>
<?php } ?>