Shoot, I knew I didn't make much sense... :p
Ok what I am trying to say is I have variables inside variables inside variables.
ex.
$Variable1 = 'example';
$Variable2 = 'This is an $Variable1';
$str = '$Varable2. I suck at describing things :)';
eval("\$str = \"$str\";");
echo $str;
Essentially that is what I am trying to do, but some of the variables, $Variable1 and $Variable2, are pulled from the MySQL database (Which I can do just fine.). But the $Variable1 would remain $Variable1. It would not change to 'example'. While $Variable2 would work as expected.
So essentially the end result would be this:
This is an $Variable1. I suck at describing things 🙂
It needs to be like this:
This is an example. I suck at describing things 🙂
I've tried to run an eval (similar to the one above) on both the $str and the $Variable1 variables (One eval per thing), but I still get the same results
Is there any way to get it to work how I want it to?