Kod
// The "key stats" box.
echo '
<td class="headerdown" align="right" width="40%" style="padding-right: 8px;">
</td>
</tr>
</table>
</td>';
echo '
<td class="headerdown" align="right" width="40%" style="padding-right: 8px;">
</td>
</tr>
</table>
</td>';
I w tą tabelkę:
Kod
<td class="headerdown" align="right" width="40%" style="padding-right: 8px;"></td>
chcę wstawić ten kod:
Kod
<?php
if (include(getenv('DOCUMENT_ROOT').'banery/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('', 12, '', '', '0', $phpAds_context);
echo $phpAds_raw['html'];
}
?>
if (include(getenv('DOCUMENT_ROOT').'banery/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('', 12, '', '', '0', $phpAds_context);
echo $phpAds_raw['html'];
}
?>
Zrobiłem to w taki sposób:
Kod
// The "key stats" box.
echo '
<td class="headerdown" align="right" width="40%" style="padding-right: 8px;">
<?php
if (include(getenv(\'DOCUMENT_ROOT\').\'banery/phpadsnew.inc.php\')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw (\'\', 12, \'\', \'\', \'0\', $phpAds_context);
echo $phpAds_raw['html'];
}
?>
</td>
</tr>
</table>
</td>';
echo '
<td class="headerdown" align="right" width="40%" style="padding-right: 8px;">
<?php
if (include(getenv(\'DOCUMENT_ROOT\').\'banery/phpadsnew.inc.php\')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw (\'\', 12, \'\', \'\', \'0\', $phpAds_context);
echo $phpAds_raw['html'];
}
?>
</td>
</tr>
</table>
</td>';
Ale niestety mam błąd:
Cytat
Template Parse Error!
There was a problem loading the /Themes/saforange105/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from php, try accessing the file directly.
You may want to try to refresh this page or use the default theme.
There was a problem loading the /Themes/saforange105/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from php, try accessing the file directly.
You may want to try to refresh this page or use the default theme.
----edit----
Proszę poprawić posta używając odpowiednich tagów bbCode

~mike_mech