Hi ppl.
I am relativly new to using PHP and javascript although i know a little, and i have ran into some problems using three different wyiswyg editors in my html/PHP pages.
So far i have tried FCK, Tiny MCE and Innova studios version and i have had the same problem with each.
As far as the integration goes all have shown up fine and posted the data to the required output pages either with textareas or a div set with an ID.
The problem is whenever i close my browser and return to the output page the stuff i have posted has gone, in other words it isnt retaining the data i have posted. Can somone please tell me why this is? Is it because i need to attach an SQL database to handle the posted data, or is it just a simple line of code that is needed within the configuration to tell it to save?
I have searched everywhere i can think of to find the soloution for this and am now out of ideas. If you need any more information please post and i will do what i can.
Thanks in advance to anyone who can help me with this problem.
I am relativly new to using PHP and javascript although i know a little, and i have ran into some problems using three different wyiswyg editors in my html/PHP pages.
So far i have tried FCK, Tiny MCE and Innova studios version and i have had the same problem with each.
As far as the integration goes all have shown up fine and posted the data to the required output pages either with textareas or a div set with an ID.
The problem is whenever i close my browser and return to the output page the stuff i have posted has gone, in other words it isnt retaining the data i have posted. Can somone please tell me why this is? Is it because i need to attach an SQL database to handle the posted data, or is it just a simple line of code that is needed within the configuration to tell it to save?
I have searched everywhere i can think of to find the soloution for this and am now out of ideas. If you need any more information please post and i will do what i can.
Thanks in advance to anyone who can help me with this problem.
RE: Does this need a DB?
You online editor will loose its data when the session is ended (browser is closed). To retain you code you need to store the data somewhere, or in a DB or in files. You can store the posted data yourself or you can use one of the filemanagers capable of saving and openening files. One such filemanager is the LFO browser. This is a custom plugin and file browser that allows you to save and open files right off of the web server where your FCKeditor is located on. See more on http://fckplugins.saulmade.nl/ . Another one is the KFM file manager/file browser, which can be found on http://kfm.verens.com/ .
RE: Does this need a DB?
RE: Does this need a DB?
EvoDan, I'm sorry to have to give such an obvious answer, but:
http://www.google.ie/search?q=php+mysql+tutorial
the two file managers Saul mentioned, his own and mine, are useful for managing the uploading of files, but they do not manage submitted data.
I'm afraid this is not a matter of "a simple line of code that is needed within the configuration to tell it to save" - you will need to figure out how to do it.
If you can't follow the tutorials, then I would recommend that you do a paid online course in PHP. That way, you would have one-to-one tutelage, instead of needing to figure it out yourself.
With FCKeditor, and all other WYSIWYG editors, it is assumed that you already know what to do with the data once it is sent.
RE: Does this need a DB?
RE: Does this need a DB?
LFO installation instruction can be found at http://fckplugins.saulmade.nl/ in the LFO plugin pane. And yes, like kaeverens said, these plugins do not handle posted data, but directly the content of the FCKeditor. I assumed that you don't care wether your contents are stored after posting or 'intern'.
RE: Does this need a DB?
kaeverens post i now understand what is required to make this work with a DB and understand (at least part way) how it works.
I just have one more thing i need help with, Can someone point me in the direction of a tut that will tell me what settings i need to configure my database with, I am using PHPMyadmin to set up the DB and im lost with all the different settings for the tables and fields lol.
Thanks again for any help with this.
RE: Does this need a DB?
I don't want to subvert this forum to a completely off-topic subject, but all you need is the username, password, server, and database.
Until you have written a few DB apps, I would not recommend trying to take it all on at the same time. Get your host to provide a database for you. They will give you the above details.
Please don't try setting up your own database server until you are comfortable using an existing database. Otherwise, you will probably end up with something that half-works, but you can't tell which half is broken (client or server).
To cut down on your MySQL education, try only using a few of the various "types" out there - use int and text. Ignore everything else until you are comfortable with your coding.
If you have any specific questions, you can email me with them (kae@verens.com), but please only ask me questions when you are really stuck and have not found the answer online. I will probably reply with a list of pages to look at.
If you are unsure of anything, then find a tutorial about it and actually do write out the code examples and play with them.
RE: Does this need a DB?
But the penny has dropped now and i realise it should have been obvious to me, seeing as there is a php setup and now i have looked at some tuts to make it work with a DB =).
Thanks for the offer of help, but now i know where to look i will probably be ok, but if i do get really stuck i give you a shout and it is greatly appreciated.