PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hello,
i downloaded and installed fckeditor into my website yesterday and i am using it to post blogs on to my website. I can successfully create new posts and they display correctly..
I also want to use it to edit existing posts in my database.
I can get fck editor to display my posts that i want to edit but i cannot get it to update my database, it appears to work but when i look at the posts i have edited, it hasn't updated at all.
If anyone has any ideas, i would be very, VERY pleased to hear them!
I am using PHP and i'm using a Mysql database..
my current code looks something like this.
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Understand that FCKEditor is a JAvascript front end GUI editor. The actual editing will be done when the form is submitted and it presented to the database via an UPDATE query.
You may want to try loading your pages with error reporting set to E_ALL and display errors on. Add this to each of your pages in this app that you are testing:
[22-Oct-2007 10:55:21] PHP Notice: Use of undefined constant logname - assumed 'logname' in C:\apache\htdocs\overspecific\blogs\Admin\edit.php on line 11
[22-Oct-2007 10:55:21] PHP Notice: Undefined index: aid in C:\apache\htdocs\overspecific\blogs\Admin\edit.php on line 12
[22-Oct-2007 10:57:34] PHP Notice: Use of undefined constant logname - assumed 'logname' in C:\apache\htdocs\overspecific\blogs\Admin\edit.php on line 11
[22-Oct-2007 10:57:34] PHP Notice: Undefined index: aid in C:\apache\htdocs\overspecific\blogs\Admin\edit.php on line 12
Those errors should show to the screen if you have display_errors turned on.
Also, if you look in the code at the line specified by each of those errors you will see what the PHP engine is seeing and why it is throwing those notices.