notlar.php sayfam
<?php
if ($alt == 'kaydet')
{
$result = mysql_query ('UPDATE notlar SET not=\'' . $_POST[notes] . '\' WHERE id=\'1\'');
echo 'Hatırlatmanız Eklendi.';
}
?>
<?php
$query = '' . 'SELECET * FROM notlar WHERE id=\'1\'';
$result = mysql_query ($query);
$data = mysql_fetch_array ($result);
$notum = $data['not'];
$id = $data['id'];
echo '<form method="post" action="notlar.php?alt=kaydet&ids=1">
<table width=100% cellspacing=1 cellpadding=0 bgcolor=#8FBCE9><tr><td bgcolor=#ffffff>
<table width=100% cellspacing=0 cellpadding=0><tr><td width=100% valign=top>
<table width=100% cellpadding=2>
<tr><td align=center class="fieldareasmall"><strong>Özel Notlar</strong></td></tr>
<tr><td class="fieldareasmall"><textarea name="notes" style="width:100%;height:200px;border:1px dashed #8FBCE9;">';
echo $notum;
echo '</textarea></td></tr>
<tr><td align=center class="fieldareasmall"><input type="submit" value="Kaydet" class="button" style="font-size:10px;height:16px;"></td></tr>
</table>
</td></tr></table>
</td></tr></table>
</form>';
?> SQL bilgilerim
CREATE TABLE `notlar` ( `id` int(11) NOT NULL auto_increment, `not` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; INSERT INTO `notlar` VALUES (1, 'deneme');