Oh yeah, so say I create a page name of index with a content area of main (all of the pages will have just one content area, that is called main, that is ok right?). So say I go into the program and create that, then put the content section into the little wysiwyg editor. Won't it overwrite my already uploaded index.php and how does it get the info for the rest of the page, everything that is not in the main content area??? I create the sites in Dreamweaver and use the template feature it has and editible regions (usually just one), so if I create the page in the cms, where does it get all of the templated info. I guess that's what confuses me. I am starting to understand that the database holeds the content and it needs to be in the database, but I don't know how it gets the rest. Because if the page is already uploaded to the server, does it overwrite it? How do I get the images to display in the wysiwyg editor.
Also, is it possible to hide the developer notes cause that's something I don't want my client to have to worry about or me have to explain that it's not for them. Can that somehow be hidden from the program???
Ok, I tried it. I took a page that was already there and created the content in power cms. Then I made sure that the content was replaced by <?php echo WA_getCMSContent($database_localhost, $localhost,"contact", "main"); ?> since it would now be taking the content from the database and now that page gives the following error when trying to access it in the browser:
Fatal error: Call to undefined function: wa_getcmscontent() in /home/foxfiren/public_html/contact.php on line 73
Line 73 is where <?php echo WA_getCMSContent($database_localhost, $localhost,"contact", "main"); ?> is.
So now I am really confused. If you're supposed to create the content sections in power cms, and replace the content that was there with the php code it gives you, then why the error? Now I am confused.