When I put the code to query info in the database in a template I get this template error:
Quote:
The following error occurred when attempting to evaluate this template:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/alliedte/public_html/includes/adminfunctions_template.php(3596) : eval()'d code on line 190
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
|
The code works fine on a stand alone php page.
And here's part of the query code:
PHP Code:
<?
$data=mysql_query("SELECT * FROM clan_news") or die(mysql_error());
$info=mysql_fetch_array( $data );
Print "".$info['clan_news'] . " ";
?>