Forum closed. New forum available at http://community.wymeditor.org/

Integration with PHP and MySQL

Support forum for WYMeditor.

Integration with PHP and MySQL

Postby dokorek on Wed Oct 03, 2007 11:54 am

Hello
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?
dokorek
 
Posts: 1
Joined: Wed Oct 03, 2007 11:48 am

Return to Support

Who is online

Users browsing this forum: No registered users and 3 guests