Dave, you seem to know a lot about eval, I posted about it a while ago but no-one was able to help (oher than point me to the manual which I'd read and read and read and still can't figure eval out)
The problem is basically a file with countries and their timezone, I'm trying to add the time in that country via statements like...
$sevenhb = mktime (date("H")-7,date("i"),date("s"),date("m"),date("d"),date("Y")); $minusseven = date("H:i:s", $sevenhb); echo $minusseven;
and then put that in a field in the db so that I can simply echo it with the rest of the table in a while loop using eval on it to display it...
But whatever I do, it won't work, its hard to give an exact error because I've had so many, but for the latest...
printf ('<tr><td>%s</td><td align=center>%s</td><td>%s</td></tr>\n',
$myrow["country"], $myrow["timezone"], eval ("$visit"));
where $visit is defined as
$visit = $myrow["time"];
as part of the PHP with in the db gave
\n17:16:10 (correct time at -07:00 GMT)
\n
\n
...
then the table below.
I've tried doing simpler things, like putting in echo "Hello"; and <? echo "Hello"; ?> but nothing seems to work
Any help would be MUCH appreciated!
Thanks