I am soooooooo new to this that my head hurts figuring this one out. I actually paid someone to write and install a working TGP script, but he never finished and doesn't return my e-mails any more, so I have been forced to make it work on my own. I have ZERO experience, but I have somehow managed to work out all the bugs, except this one. In fact, everything was working fine, with one minor little exception, and I fixed that, and this started. As far as I can see, they are in no way related.
Anyway, here it is:
The following:
<?
include("header.php");
$conf_sql="select cf from crit_links where cf='$cf'";
$conf_res=mysql_query($conf_sql);
if(@mysql_fetch_array($conf_res))
{
// If confirmed, then...
@("update crit_links set confirm='Y' where cf='$cf'");
eval("\$pleaseconfirm = '".fetchtemplate('confirm_message')."';");
echo "$pleaseconfirm";
eval("\$cpr = '".fetchtemplate('index_copyright')."';"); echo "$cpr";
}
else
{
eval("\$nopleaseconfirm='".fetchtemplate('confirm_no_message')."';");
echo "$nopleaseconfirm";
eval("\$cpr='".fetchtemplate('index_copyright')."';"); echo "$cpr";
}
exit;
?>
Nets this result:
Parse error: parse error in /home/virtual/site180/fst/var/www/html/tgp/confirm.php(14) : eval()'d code on line 4
I just don't see the problem. Heck, I can't even figure how it decided line 4 was the problem. lol
Any help would be greatly appreciated!
Jim