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 Link to comment https://forums.phpfreaks.com/topic/244534-php-cms-mysql-help/ Share on other sites More sharing options...
trq Posted August 12, 2011 Share Posted August 12, 2011 Quote 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. Link to comment https://forums.phpfreaks.com/topic/244534-php-cms-mysql-help/#findComment-1256212 Share on other sites More sharing options...
ignace Posted August 12, 2011 Share Posted August 12, 2011 I like Yahoo RTE Link to comment https://forums.phpfreaks.com/topic/244534-php-cms-mysql-help/#findComment-1256318 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/ Link to comment https://forums.phpfreaks.com/topic/244534-php-cms-mysql-help/#findComment-1256326 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.