PHP
Posted: 30. March 2013 22:13
I am converting a html website to codeigniter
I store the page content in a table on mysql
However when it transfers the content to the webpage
it reads the php tags as they are instead of converting them to HTML.
I know Im probably not explaining this very well, for an example
in my code it has:
when I check the pages source in my browser the
...part of the code is still in there instead of converting to html and reading something like http://localhost/sitename/
does anyone know why this is,
I store the page content in a table on mysql
However when it transfers the content to the webpage
it reads the php tags as they are instead of converting them to HTML.
I know Im probably not explaining this very well, for an example
in my code it has:
- Code: Select all
<p><img id="imgborder" src="<?php echo base_url();?>img/stairs.jpg" alt="office stairs"/>
when I check the pages source in my browser the
- Code: Select all
<?php echo base_url();?>
...part of the code is still in there instead of converting to html and reading something like http://localhost/sitename/
does anyone know why this is,