googlit Posted August 11, 2011 Share Posted August 11, 2011 Hi all, i'm looking into ways to create a simple admin end to a website where a user could log in and change page content.. at the moment page contnet is stored in a mysql database in one field per page section. my question is does anyone know of a simple WYSIWYG editor (eg. tinyMCE) that will integrate with php and allow editing to be saved to the DB?? my current code for page.php is : include "includes/db.php"; $id = $_GET['id']; $coding = mysql_query("SELECT * FROM template") or die(mysql_error()); $template = mysql_fetch_array( $coding ); $text = mysql_query("SELECT * FROM content WHERE content_id ='$id'") or die(mysql_error()); $content = mysql_fetch_array( $text ); Print $template['Head_Open']; Print $content['title']; Print $template['Head_Close']; //Eval ($template['Date']); Print $content['body'] ; Print $template['Page_End']; ?> Thanks S Quote Link to comment Share on other sites More sharing options...
trq Posted August 12, 2011 Share Posted August 12, 2011 my question is does anyone know of a simple WYSIWYG editor (eg. tinyMCE) that will integrate with php and allow editing to be saved to the DB?? Yeah, tinyMCE. Quote Link to comment Share on other sites More sharing options...
ignace Posted August 12, 2011 Share Posted August 12, 2011 I like Yahoo RTE Quote Link to comment Share on other sites More sharing options...
chintansshah Posted August 12, 2011 Share Posted August 12, 2011 Best PHP integration WYSIWYG editor is CKeditor, find link below http://ckeditor.com/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.