Can anyone help me with integration WYMeditor with PHP and MySQL ?
I've got something like this:
- Code: Select all
<?
if(isset($_POST[s1]))
{
$q1 = "update table set
f_page = '$_POST[f_page]'
where f_id = '1' ";
mysql_query($q1) or die(mysql_error());
}
//get the settings
$q1 = "select * from tabel";
$r1 = mysql_query($q1) or die(mysql_error());
$a1 = mysql_fetch_array($r1);
?>
<form method="post" action="">
<textarea class="wymeditor" name="f_page"><?=$a1[f_page]?></textarea>
<input type="submit" class="wymupdate" />
</form>
And when I write some text and push submit button it doesnt insert any data to MySQL
What is wrong?