I am working on a site which deals with a lot of texts in HTML, so recently I learned PHP and moved them into a MySQL database and echo
the contents given a specific chapter and section. Now this works relatively fine, the HTML shows up properly. However, in some parts I have included PHP function calls, and these doesn't seem to be evaluated - rather, they get just inserted into the source code (and thus invisible for the page viewer), never doing anything. They did work when they were simple .html files.
How can I solve this?
For example, a text can look like this:
<?php printChapterName(); ?>
<p>Some text</p>
...
<?php showImage($name, $alt-text); ?>
...
This just shows the text on the page.
Edit: The functions are echo:ing some HTML.