Forum Moderators: coopster

Message Too Old, No Replies

Problem with T_STRING parse error

         

bholabhala

8:26 am on Sep 15, 2005 (gmt 0)



Parse error: parse error, unexpected T_STRING in /home/desihopp/public_html/register.php(29) : eval()'d code on line 8

This is the error i am getting, here is the code:
include('db_connect.php');
include('pop_lists.inc');

# retrieve the template
$query="SELECT * FROM templates WHERE tpl_description='Guest Area'";
$retval=mysql_query($query,$link) or die(mysql_error());
$template = mysql_fetch_object($retval);
?>
<?php if (get_magic_quotes_gpc()==0) $template->tpl_header=addslashes($template->tpl_header); eval("\$template->tpl_header=\"$template->tpl_header\";"); print(stripslashes($template->tpl_header));?>
<script language="javascript" src="geography.js"></script>
<table width="<?php print("$CONST_TABLE_WIDTH");?>" align="<?php print("$CONST_TABLE_ALIGN");?>" border="0" cellspacing="<?php print("$CONST_TABLE_CELLSPACING");?>" cellpadding="<?php print("$CONST_TABLE_CELLPADDING");?>">
<tr>

<td align="right">&nbsp;
</td>
</tr>
<tr>

<td class="pageheader"><?php echo REGISTER_SECTION_NAME?></td>
</tr>
<tr>
<td>


----------------
Any help will be highly appretiated

grandpa

10:39 am on Sep 15, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Maybe this eval("\$ should be eval(\"$