I really need your help...

7 replies
I was trying to edit my template.php file and I think I have done some thing stupid. If I type in my url www.PregnancyBay.com I am getting this error message:

Parse error: syntax error, unexpected '?' in /home/isawy0/public_html/pregnancybay/template/template.php on line 83

Here is the code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>&lt;?=$sitetitle?&gt;</title>
<style type="text/css"> @import &quot;<?=$imgfpath?>css/common.css&quot;; </style>
<meta name="description" content="<?=$basemetadesc?>" />
<meta name="abstract" content="<?=$basemetakeywd?>" />
<meta name="keywords" content="<?=$basemetakeywd?>" />
<meta name="copyright" content="<?=$sitecopyright?>" />
<meta name="author" content="<?=$sitedomname?>" />
<meta name="classification" content="<?=$basekeywd?>" />
<meta name="language" content="en-us" />
<meta name="distribution" content="GLOBAL" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="robots" content="All, index,follow" />
<link href="<?=$imgfpath?>font.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script language="javascript" src="<?=$imgfpath?>popin.js"></script>
<script language="javascript" src="<?=$imgfpath?>popin_launch.js"></script><?
$sqlfeatured=mysql_query("select displayadd from eweb_webinfo")or die(mysql_error());
if(mysql_num_rows($sqlfeatured)>0){
$featuredstatus=mysql_result($sqlfeatured,0);
$fval=explode("#",$featuredstatus);
}
$affltequr=mysql_query("select addoption from eweb_affiliate where aid > 0")or die(mysql_error());
if(mysql_num_rows($affltequr)>0)
$optforgog=mysql_result($affltequr,0,0);
include ($imgfpath."includes/templates.inc.php");
echo showpopin($imgfpath);
?>
</head>
<body>
<div id="root">
<div class="wrpr">
<div id="header">
<h1><?if($h1tagtit!=""){echo $h1tagtit;}else if(file_exists("includes/config.php")){ echo $KEYWORDS[0]." Articles &amp; Information | ".$KEYWORDS[1]." | ".$KEYWORDS[2];} else { echo "KEYWORD Articles &amp; Information | Keyword | Keyword";}?></h1><a href="<?=$imgfpath?>sitemap.html" title="Sitemap" class="float_r">
-Sitemap</a> <img src="<?=$imgfpath?>images/logo.jpg" alt="<?=WEBTOPIC." Articles &amp; Information Logo";?>" id="logo" ?="" />&quot; id=&quot;logo&quot;?&gt;&quot; id=&quot;logo&quot; /&gt; <?
if($optforgog==1){
$selgtop=mysql_query("select status,content from eweb_ads where id = 1")or die(mysql_error());
if(mysql_num_rows($selgtop)>0){
$gtop=mysql_result($selgtop,0,0);
$googcont=mysql_result($selgtop,0,1);
if($gtop==1){?>
<div id="google_top"><?=stripslashes($googcont);?></div><? } ?></div>
<div class="cc"> <!-- // --></div>
<div id="main">
<div class="wrpr">
<div id="content"> <?include $flname;?><?include $imgfpath."includes/randomarticles.php";?><?include $imgfpath."includes/newsfeed.php";?></div></div>
<div id="rightbar"> <?
if($optforgog==1){
$selgside=mysql_query("select status,content from eweb_ads where id=4")or die(mysql_error());
if(mysql_num_rows($selgside)>0)
$gside=mysql_result($selgside,0,0);
$gcon=mysql_result($selgside,0,1);
if($gside=1){?>
<div id="google_rightbar" style="margin: 0pt -5px 0pt 0pt; text-align: center"><?=stripslashes($gcon);

//include $imgfpath."includes/googleside.php";?></div><? } }else if($optforgog==2){
$selyside=mysql_query("select status,content from eweb_ads where id=6")or die(mysql_error());
if(mysql_num_rows($selyside)>0) $yside=mysql_result($selyside,0,0);
$ycont=mysql_result($selyside,0,1); if($yside==1){?&gt;
<div id="google_rightbar" style="text-align: center; margin: 0 -5px 0 0;">
<!-->WPCOMMENT]--&gt;WPCOMMENT]--&gt;
</div>
<!--[WPCOMMENT<? } }?><br />
<?if($fval[1]=='1'){include $imgfpath."includes/friends.php";}?><?$selebay=mysql_query("select status from eweb_ads where id=8")or die(mysql_error());
if(mysql_num_rows($selebay)>0) $ebstat=mysql_result($selebay,0);
if($ebstat==1){?&gt;
<br /><div style="text-align: center; margin: 0 -7px 0 0;">
<!-->WPCOMMENT]--&gt;WPCOMMENT]--&gt;
</div>
<!--[WPCOMMENT<?}?></div></div>
<div id="sidebar"> <?
$sqlnews=mysql_query("select status,header_name,content from eweb_newsletter")or die(mysql_error());
if(mysql_num_rows($sqlnews)>0){
$newsstatus=mysql_result($sqlnews,0,0);
$name_header=mysql_result($sqlnews,0,1);
$cont=mysql_result($sqlnews,0,2);
?><?if($newsstatus=='Y'){?>
<div class="box">
<div class="box_header">
<h4><?=stripslashes($name_header)?></h4></div><?=stripslashes($cont);?></div> <?}?><?}?> <?include $imgfpath."includes/newarticleside.php";?><?include $imgfpath."includes/navigation.php";?><?include $imgfpath."includes/articlecategory.php";?><?$soption=mysql_query("sel ect ser_option from eweb_searchphrase where ser_id=1")or die (mysql_error());
if(mysql_num_rows($soption)>0) $svalue=mysql_result($soption,0);
if($svalue=='Y'){?&gt;
<!-->WPCOMMENT]--&gt;WPCOMMENT]--&gt;
<!--[WPCOMMENT<?}?><?if($fval[3]=='3'){include $imgfpath."includes/featuredwebsite.php";}?><?include $imgfpath."includes/facts.php";?><br />
<div id="rightxml"> <?$xmlart=mysql_num_rows(mysql_query("select * from eweb_articles"));
if($xmlart>0){ include $imgfpath.&quot;readxml.php&quot;;?&gt;
<a href="[WPSCODE%3C%3F%3D%24imgfpath%3F%3EWPSCODE]article.xml" _wpro_href="[WPSCODE%3C%3F%3D%24imgfpath%3F%3EWPSCODE]article.xml"><img src="[WPSCODE%3C%3F%3D%24imgfpath%3F%3EWPSCODE]images/XML.gif" _wpro_src="[WPSCODE%3C%3F%3D%24imgfpath%3F%3EWPSCODE]images/XML.gif" alt="XML Article Feed." width="36" height="14" vspace="2" border="0" /></a><br />
<a href="http://fusion.google.com/add?feedurl=[WPSCODE%3C%3F%3D%22http%3A//www.%22.__wproup_D_wproup_O_wproup_M_wproup_A_wpro up_I_wproup_N__wproup_N_wproup_A_wproup_M_wproup_E _.%22/%22%3F%3EWPSCODE]article.xml" _wpro_href="http://fusion.google.com/add?feedurl=[WPSCODE%3C%3F%3D%22http%3A//www.%22.__wproup_D_wproup_O_wproup_M_wproup_A_wpro up_I_wproup_N__wproup_N_wproup_A_wproup_M_wproup_E _.%22/%22%3F%3EWPSCODE]article.xml"?>article.xml&quot;?&gt;article.xml&qu ot;&gt;<img src="<?=$imgfpath?>images/add.gif" alt="Add XML to Google." width="104" border="0" height="17" /> <br />
<a href="http://add.my.yahoo.com/rss?url=<?="http://www."._DOMAIN_NAME_."/"?>article.xml" ?="">article.xml&quot;?&gt;article.xml&quot;&gt;<i mg src="<?=$imgfpath?>images/addtomyyahoo4.gif" alt="Add XML to Yahoo." width="91" border="0" height="17" /></a> <br />
<a href="http://my.msn.com/addtomymsn.armx?id=rss&amp;ut=<?="http://www."._DOMAIN_NAME_."/"?>article.xml" ?="">article.xml&quot;?&gt;article.xml&quot;&gt;<i mg src="<?=$imgfpath?>images/addtomymsn.gif" alt="Add XML to MSN." width="91" border="0" height="17" /></a> <br />
<a href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=<?="http://www."._DOMAIN_NAME_."/"?>article.xml" ?="">article.xml&quot;?&gt;article.xml&quot;&gt;<i mg src="<?=$imgfpath?>images/ngsub2.gif" alt="Add XML to NewsGator." width="91" border="0" height="17" /></a> <br />
<?}?></div></div>
<div class="cc"> <!-- // --></div>
<div id="footer">
<p class="float_l">Copyright www. <?=_DOMAIN_NAME_?>
© <?=date("Y")?>
- <a href="<?=$imgfpath?>privacy.html">(Read the Website TOS</a>)</p></div>
</body>
</html>

Please please help me to fix this error.

Thanks much
  • Profile picture of the author JayXtreme
    ON line 83 of that code.. you have a ? that either needs to be closed off or shouldn't be there at all..... have you tried to upload afresh version of that template.php?

    Peace

    Jay
    Signature

    Bare Murkage.........

    {{ DiscussionBoard.errors[253093].message }}
  • Profile picture of the author JayXtreme
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>&lt;?=$sitetitle?&gt;</title>
    <style type="text/css"> @import &quot;<?=$imgfpath?>css/common.css&quot;; </style>
    <meta name="description" content="<?=$basemetadesc?>" />
    <meta name="abstract" content="<?=$basemetakeywd?>" />
    <meta name="keywords" content="<?=$basemetakeywd?>" />
    <meta name="copyright" content="<?=$sitecopyright?>" />
    <meta name="author" content="<?=$sitedomname?>" />
    <meta name="classification" content="<?=$basekeywd?>" />
    <meta name="language" content="en-us" />
    <meta name="distribution" content="GLOBAL" />
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <meta name="robots" content="All, index,follow" />
    <link href="<?=$imgfpath?>font.css" rel="stylesheet" type="text/css" />
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <script language="javascript" src="<?=$imgfpath?>popin.js"></script>
    <script language="javascript" src="<?=$imgfpath?>popin_launch.js"></script><?
    $sqlfeatured=mysql_query("select displayadd from eweb_webinfo")or die(mysql_error());
    if(mysql_num_rows($sqlfeatured)>0){
    $featuredstatus=mysql_result($sqlfeatured,0);
    $fval=explode("#",$featuredstatus);
    }
    $affltequr=mysql_query("select addoption from eweb_affiliate where aid > 0")or die(mysql_error());
    if(mysql_num_rows($affltequr)>0)
    $optforgog=mysql_result($affltequr,0,0);
    include ($imgfpath."includes/templates.inc.php");
    echo showpopin($imgfpath);
    ?>
    </head>
    <body>
    <div id="root">
    <div class="wrpr">
    <div id="header">
    <h1><?if($h1tagtit!=""){echo $h1tagtit;}else if(file_exists("includes/config.php")){ echo $KEYWORDS[0]." Articles &amp; Information | ".$KEYWORDS[1]." | ".$KEYWORDS[2];} else { echo "KEYWORD Articles &amp; Information | Keyword | Keyword";}?></h1><a href="<?=$imgfpath?>sitemap.html" title="Sitemap" class="float_r">
    -Sitemap</a> <img src="<?=$imgfpath?>images/logo.jpg" alt="<?=WEBTOPIC." Articles &amp; Information Logo";?>" id="logo" ?="" />&quot; id=&quot;logo&quot;?&gt;&quot; id=&quot;logo&quot; /&gt; <?
    if($optforgog==1){
    $selgtop=mysql_query("select status,content from eweb_ads where id = 1")or die(mysql_error());
    if(mysql_num_rows($selgtop)>0){
    $gtop=mysql_result($selgtop,0,0);
    $googcont=mysql_result($selgtop,0,1);
    if($gtop==1){?>
    <div id="google_top"><?=stripslashes($googcont);?></div><? } ?></div>
    <div class="cc"> <!-- // --></div>
    <div id="main">
    <div class="wrpr">
    <div id="content"> <?include $flname;?><?include $imgfpath."includes/randomarticles.php";?><?include $imgfpath."includes/newsfeed.php";?></div></div>
    <div id="rightbar"> <?
    if($optforgog==1){
    $selgside=mysql_query("select status,content from eweb_ads where id=4")or die(mysql_error());
    if(mysql_num_rows($selgside)>0)
    $gside=mysql_result($selgside,0,0);
    $gcon=mysql_result($selgside,0,1);
    if($gside=1){?>
    <div id="google_rightbar" style="margin: 0pt -5px 0pt 0pt; text-align: center"><?=stripslashes($gcon);

    //include $imgfpath."includes/googleside.php";?></div><? } }else if($optforgog==2){
    $selyside=mysql_query("select status,content from eweb_ads where id=6")or die(mysql_error());
    if(mysql_num_rows($selyside)>0) $yside=mysql_result($selyside,0,0);
    $ycont=mysql_result($selyside,0,1); if($yside==1){?&gt;
    <div id="google_rightbar" style="text-align: center; margin: 0 -5px 0 0;">
    <!-->WPCOMMENT]--&gt;WPCOMMENT]--&gt;
    </div>
    <!--[WPCOMMENT<? } }?><br />
    <?if($fval[1]=='1'){include $imgfpath."includes/friends.php";}?><?$selebay=mysql_query("select status from eweb_ads where id=8")or die(mysql_error());
    if(mysql_num_rows($selebay)>0) $ebstat=mysql_result($selebay,0);
    if($ebstat==1){?&gt;
    <br /><div style="text-align: center; margin: 0 -7px 0 0;">
    <!-->WPCOMMENT]--&gt;WPCOMMENT]--&gt;
    </div>
    <!--[WPCOMMENT<?}?></div></div>
    <div id="sidebar"> <?
    $sqlnews=mysql_query("select status,header_name,content from eweb_newsletter")or die(mysql_error());
    if(mysql_num_rows($sqlnews)>0){
    $newsstatus=mysql_result($sqlnews,0,0);
    $name_header=mysql_result($sqlnews,0,1);
    $cont=mysql_result($sqlnews,0,2);?>
    <?if($newsstatus=='Y'){?>
    <div class="box">
    <div class="box_header">
    <h4><?=stripslashes($name_header)?></h4></div><?=stripslashes($cont);?></div> <?}?><?}?> <?include $imgfpath."includes/newarticleside.php";?><?include $imgfpath."includes/navigation.php";?><?include $imgfpath."includes/articlecategory.php";?><?$soption=mysql_query("sel ect ser_option from eweb_searchphrase where ser_id=1")or die (mysql_error());
    if(mysql_num_rows($soption)>0) $svalue=mysql_result($soption,0);
    if($svalue=='Y'){?&gt;
    <!-->WPCOMMENT]--&gt;WPCOMMENT]--&gt;
    <!--[WPCOMMENT<?}?><?if($fval[3]=='3'){include $imgfpath."includes/featuredwebsite.php";}?><?include $imgfpath."includes/facts.php";?><br />
    <div id="rightxml"> <?$xmlart=mysql_num_rows(mysql_query("select * from eweb_articles"));
    if($xmlart>0){ include $imgfpath.&quot;readxml.php&quot;;?&gt;
    <a href="[WPSCODE%3C%3F%3D%24imgfpath%3F%3EWPSCODE]article.xml" _wpro_href="[WPSCODE%3C%3F%3D%24imgfpath%3F%3EWPSCODE]article.xml"><img src="[WPSCODE%3C%3F%3D%24imgfpath%3F%3EWPSCODE]images/XML.gif" _wpro_src="[WPSCODE%3C%3F%3D%24imgfpath%3F%3EWPSCODE]images/XML.gif" alt="XML Article Feed." width="36" height="14" vspace="2" border="0" /></a><br />
    <a href="http://fusion.google.com/add?feedurl=[WPSCODE%3C%3F%3D%22http%3A//www.%22.__wproup_D_wproup_O_wproup_M_wproup_A_wpro up_I_wproup_N__wproup_N_wproup_A_wproup_M_wproup_E _.%22/%22%3F%3EWPSCODE]article.xml" _wpro_href="http://fusion.google.com/add?feedurl=[WPSCODE%3C%3F%3D%22http%3A//www.%22.__wproup_D_wproup_O_wproup_M_wproup_A_wpro up_I_wproup_N__wproup_N_wproup_A_wproup_M_wproup_E _.%22/%22%3F%3EWPSCODE]article.xml"?>article.xml&quot;?&gt;article.xml&qu ot;&gt;<img src="<?=$imgfpath?>images/add.gif" alt="Add XML to Google." width="104" border="0" height="17" /> <br />
    <a href="http://add.my.yahoo.com/rss?url=<?="http://www."._DOMAIN_NAME_."/"?>article.xml" ?="">article.xml&quot;?&gt;article.xml&quot;&gt; <i mg src="<?=$imgfpath?>images/addtomyyahoo4.gif" alt="Add XML to Yahoo." width="91" border="0" height="17" /></a> <br />
    <a href="http://my.msn.com/addtomymsn.armx?id=rss&amp;ut=<?="http://www."._DOMAIN_NAME_."/"?>article.xml" ?="">article.xml&quot;?&gt;article.xml&quot;&gt; <i mg src="<?=$imgfpath?>images/addtomymsn.gif" alt="Add XML to MSN." width="91" border="0" height="17" /></a> <br />
    <a href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=<?="http://www."._DOMAIN_NAME_."/"?>article.xml" ?="">article.xml&quot;?&gt;article.xml&quot;&gt; <i mg src="<?=$imgfpath?>images/ngsub2.gif" alt="Add XML to NewsGator." width="91" border="0" height="17" /></a> <br />
    <?}?></div></div>
    <div class="cc"> <!-- // --></div>
    <div id="footer">
    <p class="float_l">Copyright www. <?=_DOMAIN_NAME_?>
    © <?=date("Y")?>
    - <a href="<?=$imgfpath?>privacy.html">(Read the Website TOS</a>)</p></div>
    </body>
    </html>


    ------

    Try putting this in instead.. I have rectified what I think the error is....
    Signature

    Bare Murkage.........

    {{ DiscussionBoard.errors[253098].message }}
  • Profile picture of the author WARRIOR_USA
    Hi Jay,

    I don't know any thing about codes, I was trying to make a change. I copied the template to frontpage and then copied it to back to the website. How do I close ?
    {{ DiscussionBoard.errors[253102].message }}
    • Profile picture of the author JayXtreme
      Originally Posted by WARRIOR_USA View Post

      Hi Jay,

      I don't know any thing about codes, I was trying to make a change. I copied the template to frontpage and then copied it to back to the website. How do I close ?

      I wouldn't ever put it into frontpage.. do you have the original copy of template.php on your computer?
      Signature

      Bare Murkage.........

      {{ DiscussionBoard.errors[253110].message }}
  • Profile picture of the author WARRIOR_USA
    Hey Jay,

    I tired that and now I have this error:

    Parse error: syntax error, unexpected '?' in /home/isawy0/public_html/pregnancybay/template/template.php on line 61

    Thanks
    {{ DiscussionBoard.errors[253116].message }}
  • Profile picture of the author WARRIOR_USA
    Here it is:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

    <html>
    <head>
    <title>&lt;?=$sitetitle?&gt;</title>
    <style type="text/css"> @import "<?=$imgfpath?>css/common.css"; </style>
    <meta name="description" content="<?=$basemetadesc?>" />
    <meta name="abstract" content="<?=$basemetakeywd?>" />
    <meta name="keywords" content="<?=$basemetakeywd?>" />
    <meta name="copyright" content="<?=$sitecopyright?>" />
    <meta name="author" content="<?=$sitedomname?>" />
    <meta name="classification" content="<?=$basekeywd?>" />
    <meta name="language" content="en-us" />
    <meta name="distribution" content="GLOBAL" />
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <meta name="robots" content="All, index,follow" />
    <link href="<?=$imgfpath?>font.css" rel="stylesheet" type="text/css" />
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

    <script language="javascript" src="<?=$imgfpath?>popin.js"></script>
    <script language="javascript" src="<?=$imgfpath?>popin_launch.js"></script>
    <?
    $sqlfeatured=mysql_query("select displayadd from eweb_webinfo")or die(mysql_error());
    if(mysql_num_rows($sqlfeatured)>0){
    $featuredstatus=mysql_result($sqlfeatured,0);
    $fval=explode("#",$featuredstatus);
    }
    $affltequr=mysql_query("select addoption from eweb_affiliate where aid > 0")or die(mysql_error());
    if(mysql_num_rows($affltequr)>0)
    $optforgog=mysql_result($affltequr,0,0);
    include ($imgfpath."includes/templates.inc.php");
    echo showpopin($imgfpath);
    ?>

    </head>
    <body>
    <div id="root">
    <div class="wrpr">
    <div id="header">
    <h1><?if($h1tagtit!=""){echo $h1tagtit;}else if(file_exists("includes/config.php")){ echo $KEYWORDS[0]." Articles &amp; Information | ".$KEYWORDS[1]." | ".$KEYWORDS[2];} else { echo "KEYWORD Articles &amp; Information | Keyword | Keyword";}?></h1>
    <a href="<?=$imgfpath?>sitemap.html" title="Sitemap" class="float_r">
    -Sitemap</a>
    <img src="<?=$imgfpath?>http://www.warriorforum.com/images/logo.jpg" alt="<?=WEBTOPIC." Articles &amp; Information Logo";?>" id="logo"?>" id="logo"?>" id="logo" />
    <?
    if($optforgog==1){
    $selgtop=mysql_query("select status,content from eweb_ads where id = 1")or die(mysql_error());
    if(mysql_num_rows($selgtop)>0){
    $gtop=mysql_result($selgtop,0,0);
    $googcont=mysql_result($selgtop,0,1);
    if($gtop==1){?>
    <div id="google_top">
    <?=stripslashes($googcont);?>
    </div>
    <? } ?>
    </div>
    <div class="cc">
    <!-- // -->
    </div>
    <div id="main">
    <div class="wrpr">
    <div id="content">
    <?include $flname;?>
    <?include $imgfpath."includes/randomarticles.php";?>
    <?include $imgfpath."includes/newsfeed.php";?>
    </div>
    </div>
    <div id="rightbar">
    <?
    if($optforgog==1){
    $selgside=mysql_query("select status,content from eweb_ads where id=4")or die(mysql_error());
    if(mysql_num_rows($selgside)>0)
    $gside=mysql_result($selgside,0,0);
    $gcon=mysql_result($selgside,0,1);
    if($gside=1){?>
    <div id="google_rightbar" style="text-align: center; margin: 0 -5px 0 0;">
    <?=stripslashes($gcon);

    //include $imgfpath."includes/googleside.php";?>
    </div>
    <? } }else if($optforgog==2){
    $selyside=mysql_query("select status,content from eweb_ads where id=6")or die(mysql_error());
    if(mysql_num_rows($selyside)>0) $yside=mysql_result($selyside,0,0);
    $ycont=mysql_result($selyside,0,1); if($yside==1){?&gt;
    <div id="google_rightbar" style="text-align: center; margin: 0 -5px 0 0;">
    <?
    echo stripslashes($ycont);
    //include $imgfpath."includes/ypnside.php";?>
    </div>
    <? } }?>
    <br />
    <?if($fval[1]=='1'){include $imgfpath."includes/friends.php";}?>
    <?$selebay=mysql_query("select status from eweb_ads where id=8")or die(mysql_error());
    if(mysql_num_rows($selebay)>0) $ebstat=mysql_result($selebay,0);
    if($ebstat==1){?&gt;
    <br /><div style="text-align: center; margin: 0 -7px 0 0;">
    <?include $imgfpath."includes/amazonside.php";?>
    </div>
    <?}?>
    </div>
    </div>
    <div id="sidebar">
    <?
    $sqlnews=mysql_query("select status,header_name,content from eweb_newsletter")or die(mysql_error());
    if(mysql_num_rows($sqlnews)>0){
    $newsstatus=mysql_result($sqlnews,0,0);
    $name_header=mysql_result($sqlnews,0,1);
    $cont=mysql_result($sqlnews,0,2);
    ?>

    <?if($newsstatus=='Y'){?>
    <div class="box">
    <div class="box_header">
    <h4><?=stripslashes($name_header)?></h4>
    </div>
    <?=stripslashes($cont);?>
    </div>
    <?}?>

    <?}?>
    <?include $imgfpath."includes/newarticleside.php";?>
    <?include $imgfpath."includes/navigation.php";?>
    <?include $imgfpath."includes/articlecategory.php";?>
    <?$soption=mysql_query("select ser_option from eweb_searchphrase where ser_id=1")or die (mysql_error());
    if(mysql_num_rows($soption)>0) $svalue=mysql_result($soption,0);
    if($svalue=='Y'){?&gt;
    <?include $imgfpath."includes/directorylist.php";?>
    <?}?>
    <?if($fval[3]=='3'){include $imgfpath."includes/featuredwebsite.php";}?>
    <?include $imgfpath."includes/facts.php";?><br />
    <div id="rightxml">
    <?$xmlart=mysql_num_rows(mysql_query("select * from eweb_articles"));
    if($xmlart>0){ include $imgfpath.&quot;readxml.php&quot;;?&gt;
    <a href="<?=$imgfpath?>article.xml"><img src="<?=$imgfpath?>http://www.warriorforum.com/images/XML.gif" alt="XML Article Feed." width="36" height="14" vspace="2" border="0" /></a><br />
    <a href="http://fusion.google.com/add?feedurl=<?="http://www."._DOMAIN_NAME_."/"?>article.xml"?>article.xml"?>article.xml"><i mg src="<?=$imgfpath?>http://www.warriorforum.com/images/add.gif" alt="Add XML to Google." width="104" height="17" border="0" /></a>
    <br />
    <a href="http://add.my.yahoo.com/rss?url=<?="http://www."._DOMAIN_NAME_."/"?>article.xml"?>article.xml"?>article.xml"><i mg src="<?=$imgfpath?>http://www.warriorforum.com/images/addtomyyahoo4.gif" alt="Add XML to Yahoo." width="91" height="17" border="0" /></a>
    <br />
    <a href="http://my.msn.com/addtomymsn.armx?id=rss&ut=<?="http://www."._DOMAIN_NAME_."/"?>article.xml"?>article.xml"?>article.xml"><i mg src="<?=$imgfpath?>http://www.warriorforum.com/images/addtomymsn.gif" alt="Add XML to MSN." width="91" height="17" border="0" /></a>
    <br />
    <a href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=<?="http://www."._DOMAIN_NAME_."/"?>article.xml"?>article.xml"?>article.xml"><i mg src="<?=$imgfpath?>http://www.warriorforum.com/images/ngsub2.gif" alt="Add XML to NewsGator." width="91" height="17" border="0" /></a>
    <br />
    <?}?>
    </div>
    </div>
    <div class="cc">
    <!-- // -->
    </div>
    <div id="footer">
    <p class="float_l">Copyright www.
    <?=_DOMAIN_NAME_?>
    ©
    <?=date("Y")?>
    - <a href="<?=$imgfpath?>privacy.html">(Read the Website TOS</a>)</p>
    </div>
    </div>
    </div>

    </body>
    </html>

    This is giving me line 83 error.
    {{ DiscussionBoard.errors[253120].message }}
  • Profile picture of the author JayXtreme
    You can't mix php and HTML like that....

    This should be discussed in the website forum..not here...
    Signature

    Bare Murkage.........

    {{ DiscussionBoard.errors[253144].message }}

Trending Topics