Properly echo a define in database result
Posted: Fri Nov 21, 2008 2:08 pm
Not sure how to get this to work. I run two sites each with defines like;
I also have a contest method that queries and displays all current contests. Now I want to run the same contest on both sites and the name should be something like;
Win big with MY_NAME
How do I get a result row to display this correctly?
I've tried entering the name(in the DB) as Win big with ".MY_NAME.", '".MY_NAME."', and <?php echo MY_NAME; ?>, but it prints it out rather than echoing the define, any tips? Can this be echoed properly from printing a result row?
Thanks
Code: Select all
define('MY_NAME', 'Jim');Win big with MY_NAME
How do I get a result row to display this correctly?
I've tried entering the name(in the DB) as Win big with ".MY_NAME.", '".MY_NAME."', and <?php echo MY_NAME; ?>, but it prints it out rather than echoing the define, any tips? Can this be echoed properly from printing a result row?
Thanks