I posted about this before and was told to use eval() from the manual.
My problem was that I had the below in the field on a db
$sevenhb = mktime (date("H")-7,date("i"),date("s"),date("m"),date("d"),date("Y"));
$minusseven = date("H:i:s", $sevenhb);
echo "$minusseven";
and when I did the below kind of statement
printf ("<tr><td>%s</td> ...</tr>\n",
$myrow["country"]
all I had was the text printed out, not parsed.
So I looked up eval() about have been stuck since, I can't even find any reference as to which bit goes in the actual table, even though the manual says
"eval() evaluates the string given in code_str as PHP code. Among other things, this can be useful for storing code in a database text field for later execution."
does the eval() bit go in the table, or, as it more likely does it get combined into the PHP part. I'm current testing this so I'm just trying echo "Testing"; in the db field but even that won't work. I've tried searching on here and with seach engines for some kind of tutorial but got nothing.
I've tried <td>eval ('\%s = \'%s\';');</td> from examples
<td>eval ('%s');</td> also just prints out exactly that, along with the echo "Testing"; in the field specified of course.
Any help much appreciated.