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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.