The data in a text field of a MySQL table is literally as follows:
The sky is $color
The data is read into a variable called $text.
will output: The sky is $color
Is it possible to somehow treat the $color as a variable and parse it to output a value? For example:
$color = "blue";
prit $text; // can something be done here?
to get the output: The sky is blue
Or can the data in the text field be stored in some other way to get the desired output? Maybe with additional quotes around $color or something?
Are you suggesting that I put
"The sky is ".$color."."
as the data in the table text field itself? I tried that but it did not work. It will print out exactly as the above, without converting $color to blue.