cdog5000 Posted April 13, 2009 Share Posted April 13, 2009 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 More sharing options...
jackpf Posted April 13, 2009 Share Posted April 13, 2009 What's line 43? Link to comment https://forums.phpfreaks.com/topic/153898-t_string-error/#findComment-808857 Share on other sites More sharing options...
cdog5000 Posted April 13, 2009 Author Share Posted April 13, 2009 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 More sharing options...
jackpf Posted April 13, 2009 Share Posted April 13, 2009 Hmm...since print is a function, doesn't it's argument have to be encapsulated within parenthesis? Link to comment https://forums.phpfreaks.com/topic/153898-t_string-error/#findComment-808875 Share on other sites More sharing options...
cdog5000 Posted April 13, 2009 Author Share Posted April 13, 2009 Hmm...since print is a function, doesn't it's argument have to be encapsulated within parenthesis? Yes, But i have also tried echo and it doesnt work Link to comment https://forums.phpfreaks.com/topic/153898-t_string-error/#findComment-808882 Share on other sites More sharing options...
jackpf Posted April 13, 2009 Share Posted April 13, 2009 I just tried your code and it worked for me. But with a different database and table obviously. Link to comment https://forums.phpfreaks.com/topic/153898-t_string-error/#findComment-808886 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.