Hi,
I am trying to 'embed' some simple PHP code in the HTML I generate using FCK editor, so I change to 'Source' mode and enter the PHP code into the HTML. So that the HTML code snippet I want looks like this:
<table cellspacing="12" width="100%" border="0">
<tbody>
<tr>
<td width="75%">blah, blah blah...</td>
<td valign="top" align="right" width="25%"><?php include 'library/news-feed.php'; ?></td>
</tr>
</tbody>
</table>
Problem 1: The generated page does not show the php file I have included although I know the source code is correct because if I create the same page with exactly the same HTML & PHP code using dreamweaver the page works!
Problem 2: When I retrieve the page from the database FCK editor has changed the PHP code segment (highlighted below in bold), to this:
<table cellspacing="12" width="100%" border="0">
<tbody>
<tr>
<td width="75%">blah, blah blah...</td>
<td valign="top" align="right" width="25%"><!--p include 'library/news-feed.php'--></td>
</tr>
</tbody>
</table>
So basically I would like to know how I can include php within the HTML generated using FCK editor.
Any suggestions would be greatly appreciated.
Thanks.
Lee.
I am trying to 'embed' some simple PHP code in the HTML I generate using FCK editor, so I change to 'Source' mode and enter the PHP code into the HTML. So that the HTML code snippet I want looks like this:
<table cellspacing="12" width="100%" border="0">
<tbody>
<tr>
<td width="75%">blah, blah blah...</td>
<td valign="top" align="right" width="25%"><?php include 'library/news-feed.php'; ?></td>
</tr>
</tbody>
</table>
Problem 1: The generated page does not show the php file I have included although I know the source code is correct because if I create the same page with exactly the same HTML & PHP code using dreamweaver the page works!
Problem 2: When I retrieve the page from the database FCK editor has changed the PHP code segment (highlighted below in bold), to this:
<table cellspacing="12" width="100%" border="0">
<tbody>
<tr>
<td width="75%">blah, blah blah...</td>
<td valign="top" align="right" width="25%"><!--p include 'library/news-feed.php'--></td>
</tr>
</tbody>
</table>
So basically I would like to know how I can include php within the HTML generated using FCK editor.
Any suggestions would be greatly appreciated.
Thanks.
Lee.
Re: 'Embedding' PHP in my FCK generated HTML - how please?
Re: 'Embedding' PHP in my FCK generated HTML - how please?
Anyone help me with this, please?