I'm new in CMSMS.
I have inserted some PHP code inside a page with {php} some code {/php}.
It works.
My PHP code query a big external mysql database. I can query it inside CMSMS and I can browse all records.
But I have a problem with PHP code or better I have a problem with WYSYWYG editor.
I create a page and in the editor I select off "Change WYSYWYG". I enter my raw PHP code and I save the page.
It works in my site.
After I re-open the same page to modify and I have this code changed and the code DOES NOT WORK anymore in my page.
The first thing that I see are the carriage return disappeared and other small changes but it's difficult to see what is changed because the text is unformatting.
I have a saved text for copyng and pasting the code but this is not good.
The WYSYWYG editor inside CMSMS cut the code, always.
WHY

There are other solution like external file with UDT or all code like UDT but I prefer the code inside my page because it's more comfortable.
Last question:
How much is safe the PHP code inside a page in CMSMS?
Best Regards
Lorenzo