Need Help with Template Error

cdog5000

New Member
Ok, I have a template named : rsacctrader_sale_home
With this code:
Code:
<?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'];
}

?>
But I get this error:
Code:
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

How can i fix this?
 

cdog5000

New Member
Ok, I have a template named : rsacctrader_sale_home
With this code:
Code:
<?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'];
}

?>
But I get this error:
Code:
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

How can i fix this?
 
Top