אה, נכון חח שכחתי ..
אבל עדיין לא עובד -
PHP קוד:
<?
include "config.php";
if ( $_POST["xds"] != "1" ) {
$query = mysql_query("SELECT * FROM `msg`");
$con = mysql_fetch_array($query);
$msg = $con['Updote'];
echo <<<EOF
<html>
<head>
<form action="messege.php" method="POST">
<div align="center">
<textarea name="messege">{$msg}</textarea>
<input type="hidden" value="1" name="xds" />
<input type="submit" value="עדכן תיבה">
</form>
</html>
EOF;
}
else {
$update = $_POST['messege'];
mysql_query("UPDATE `msg` SET Updote = '{$update}'");
}
?>