Jump to content

displaying <?php echo $something; ?> from mysql database


c_shelswell

Recommended Posts

this might be a stupid question but in trying to save some time i've come across a small problem. I've been adding data to my database (no problems here) some of the data string has a php echo CONSTANT in it though. so what's getting added to my database is:

'string string etc <?php echo CONSTANT; ?> string'

 

I had hoped that when i retrieved it from the database and echoed it it might still print the constant. I was wrong. Is there anyway to do this?

 

Hope this is clear even if it probably is a really weird question.

 

Cheers

Link to comment
https://forums.phpfreaks.com/topic/169297-displaying-from-mysql-database/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.