Jump to content

T_STRING ERROR


cdog5000

Recommended Posts

Ok, I am running this query

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle] - $vboptions[rsacctrade_Name]</title>
</head>
<body>
$header
$navbar
<if condition="$vboptions[rsacctrader_enabled] == 1">
<div class="forbg">
      <div class="forl"> 
      <div class="forr"> 
            <div class="fortitel">Runemarkets Account Sales
             </div>
      </div>
      </div>
</div>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="33%">
           <center><a href="runescapeshop.php">Runemarkets Shop Home</a></center>
</td>	
        <td class="alt1" width="34%">
           <center><a href="runescapeshop.php?action=trade">Runemarkets Account Trades</a></center>
</td>
        <td class="alt1" width="33%">
           <center><b>Runemarkets Account Sales</b></center>
</td>
</tr>
<tr>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>	
<td class="alt1" align="center">
<if condition="$vboptions[rsacctrader_sales_enabled] == 0">
<h3>Market Sales are disabled, sorry for the inconvenience!</h3>
<else />
<?php
mysql_select_db("13048_forums") or die(mysql_error());
$query = "SELECT * FROM `vbulletin_rs_accounts_sales` WHERE 1"; 
$result = mysql_query($query) or die(mysql_error());
while($row = mysql_fetch_array($result)){
print $row['username'];
}

?>
</if>
</td>
</tr>
</table>
</tr>
</table>
<div class="c_border_bottombg"> 
      <div class="c_border_bottom_left">
      <div class="c_border_bottom-right">
      </div>
      </div>
</div>
<br />
</if>
$footer

, but I always get

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /hosted/domains/r/u/runemarkets.com/public_html/forums/includes/adminfunctions_template.php(3929) : eval()'d code on line 43

Link to comment
https://forums.phpfreaks.com/topic/153898-t_string-error/
Share on other sites

What's line 43?

Well, Thats the stuff on line 43... I will get all of it:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle] - $vboptions[rsacctrade_Name]</title>
</head>
<body>
$header
$navbar
<if condition="$vboptions[rsacctrader_enabled] == 1">
<div class="forbg">
     <div class="forl"> 
     <div class="forr"> 
           <div class="fortitel">Runemarkets Account Sales
            </div>
     </div>
     </div>
</div>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="33%">
          <center><a href="runescapeshop.php">Runemarkets Shop Home</a></center>
</td>	
       <td class="alt1" width="34%">
          <center><a href="runescapeshop.php?action=trade">Runemarkets Account Trades</a></center>
</td>
       <td class="alt1" width="33%">
          <center><b>Runemarkets Account Sales</b></center>
</td>
</tr>
<tr>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>	
<td class="alt1" align="center">
<if condition="$vboptions[rsacctrader_sales_enabled] == 0">
<h3>Market Sales are disabled, sorry for the inconvenience!</h3>
<else />
<?php
mysql_select_db("13048_forums") or die(mysql_error());
$query = "SELECT * FROM `vbulletin_rs_accounts_sales` WHERE 1"; 
$result = mysql_query($query) or die(mysql_error());
while($row = mysql_fetch_array($result)){
print $row['username'];
}

?>
</if>
</td>
</tr>
</table>
</tr>
</table>
<div class="c_border_bottombg"> 
     <div class="c_border_bottom_left">
     <div class="c_border_bottom-right">
     </div>
     </div>
</div>
<br />
</if>
$footer

Link to comment
https://forums.phpfreaks.com/topic/153898-t_string-error/#findComment-808867
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.