I am using the "sample10.html" of FCKeditor as a template for my site, however, i would like it to save the form entries to a MySQL database.
Currently "sample10.html" uses "sampleposteddata.asp" to save entries - i would like it to use the following PHP script instead:
Can someone please demonstrate how this is done, particularly saving input from FCKeditor to MySQL in PHP??
Many thanks for your support.
Currently "sample10.html" uses "sampleposteddata.asp" to save entries - i would like it to use the following PHP script instead:
<?php $con = mysql_connect("127.0.0.1","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("tm", $con); $sql="INSERT INTO poi (title, date, blog, link) VALUES ('$_POST[title]','$_POST[date]','$_POST[blog]','$_POST[link]')"; if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } echo "1 record added "; mysql_close($con) ?>
Can someone please demonstrate how this is done, particularly saving input from FCKeditor to MySQL in PHP??
Many thanks for your support.