kiwis
May 9th, 2004, 07:44 PM
<?php
mysql_connect (localhost, user, pass);
mysql_select_db (nz);
?>
<?php
if ($action == "save")
{
$result = mysql_query ("UPDATE DB_Stats_Update Values ('$details')");
?>
<p>
<hr>
<strong><font size="2">THANK YOU<br>
</font>
<?php
} else {
?>
<hr>
<?php
$result = mysql_query ("SELECT details from DB_Stats_Update");
$row = mysql_fetch_array($result);
$details = $row["details"];
?>
<hr>
<form method="POST" action="index.php?action=save">
<textarea rows="5" name="details" cols="34"><?php echo $details; ?>
</textarea>
<br>
<input type="submit" value="save" name="B1"></p>
</form>
<?php
}
?></font>
any ideas??
mysql_connect (localhost, user, pass);
mysql_select_db (nz);
?>
<?php
if ($action == "save")
{
$result = mysql_query ("UPDATE DB_Stats_Update Values ('$details')");
?>
<p>
<hr>
<strong><font size="2">THANK YOU<br>
</font>
<?php
} else {
?>
<hr>
<?php
$result = mysql_query ("SELECT details from DB_Stats_Update");
$row = mysql_fetch_array($result);
$details = $row["details"];
?>
<hr>
<form method="POST" action="index.php?action=save">
<textarea rows="5" name="details" cols="34"><?php echo $details; ?>
</textarea>
<br>
<input type="submit" value="save" name="B1"></p>
</form>
<?php
}
?></font>
any ideas??