Hi.
After years of laboriously updating the html on my website I decided to make it database driven (using mysql). It works well but I can't get embedded php to work.
I have a database entry that contains this...
...but the php bit doesn't work.
If you look at the second box on the right here (where it says 'Found and Not Found') - I was expecting the above php to echo 'hello world' - but it doesn't. Looking at the page source showed that the php is not being parsed properly.
So, basically - I have a php driven website where I'd like to embed php into the database entries. But currently the php aint working.
Kind regards,
Matt
After years of laboriously updating the html on my website I decided to make it database driven (using mysql). It works well but I can't get embedded php to work.
I have a database entry that contains this...
Code:
<a href="geo.php?map=found">Found</a> (23)<br>
<a href="geo.php?map=notfound">Not Found</a> (5)
<?php echo "hello world";?>
...but the php bit doesn't work.
If you look at the second box on the right here (where it says 'Found and Not Found') - I was expecting the above php to echo 'hello world' - but it doesn't. Looking at the page source showed that the php is not being parsed properly.
So, basically - I have a php driven website where I'd like to embed php into the database entries. But currently the php aint working.
Kind regards,
Matt