PHP Variables Stored in SQL
Posted: Fri Sep 01, 2006 12:17 pm
I am trying to store a standardized text into a database. I want it to store some of my php session variables so when I call it , it will display the current value.
I am storing text that looks like this:
'<?php echo $firstName; ?> Wants to send you a gift ....'
I tried storing it a couple other ways thinking I had my tags in the wrong place. Stored like that I dont even see the code, I only see 'Wants to send you a gift ...'. So I am thinking its recognizing it but dont know why it isnt printing.
I am putting it my document like this:
echo $row_gift['Description'];
I am thinking I should be trying it in an include and it might work better. So I thought echoing it in another document and trying to include it would work, but didnt.
Help please...
Thanks in advance.
I am storing text that looks like this:
'<?php echo $firstName; ?> Wants to send you a gift ....'
I tried storing it a couple other ways thinking I had my tags in the wrong place. Stored like that I dont even see the code, I only see 'Wants to send you a gift ...'. So I am thinking its recognizing it but dont know why it isnt printing.
I am putting it my document like this:
echo $row_gift['Description'];
I am thinking I should be trying it in an include and it might work better. So I thought echoing it in another document and trying to include it would work, but didnt.
Help please...
Thanks in advance.