Ckeditor, create a php file to store in MySQL

advertisements

I'm using CKeditor but I'm not working out how to create the php file that stores editing textareas in MySql DB. I'm quite newbie in php/mysql.. javascript code of CKeditor calls is:

$(’#my_div’).ckeip({
e_url: ’test.php’,
data: {
example_var : ’example_value’,
example_var2 : ’example_value2’
}
)};

What I have to write in test.php to making it store data of ckeditor in MySql? Should I create a new table in database first ?

thanks a lot


I think the best way to handle this is create a new MYSQL table with two columns. One as an id for the textarea and then the other column to store the text. For a basic tutorial about MYSQL and PHP check out W3School http://www.w3schools.com/PHP/php_mysql_intro.asp