WDjoe Posted March 13, 2011 Share Posted March 13, 2011 I am working to on the first script in the book "Effortless E-Commerce with PHP and MySQL" and have it working the way I want it to work.I am customizing it to fit my particular needs. I have added pages where the administrator can also add or delete pages and categories from the database. I also made it where only the administrator can add the users to the database (no one can register). There is only one problem I am having and it's driving me nuts and I am hoping that someone can help me. First, I have added the TinyMCE html editor per instructions in the book ( I love this feature) and it works as it should, the problem I have is how do I edit a page that is already in the database so when I call it to be edited the original text from this page is automatically placed in the TinyMCE editor for easy editing? 1 Link to comment Share on other sites More sharing options...
Larry Posted March 14, 2011 Share Posted March 14, 2011 To edit a page, presumably you're passing the page ID in the URL, as you would with a delete page feature. Then, use that ID to retrieve the page's data from the database. Then echo out the page's content between the textarea tags used for the RTE. Link to comment Share on other sites More sharing options...
WDjoe Posted March 16, 2011 Author Share Posted March 16, 2011 Hi Larry, thank you for your reply. That did the trick :-) 1 Link to comment Share on other sites More sharing options...
nick Posted April 6, 2011 Share Posted April 6, 2011 did you make the form to edit sticky and if so how did you do that with the form_function or did you do something different. Thanks Link to comment Share on other sites More sharing options...
Recommended Posts