Jump to content

PHP CMS MySQL Help......


googlit

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.