przemz
21-07-2010, 19:08
witam, posiadam taki kod odpowiedzialny za wyświetlanie ostatnich postów z forum SMF:
<?php
require_once($/forum/SSI.php');
ssi_boardNews($board = 102.0, $limit = 5, $start = null, $length = 250, $output_method = 'echo');
$array = ssi_boardNews(111.0, 5, null, 250, 'array');
foreach ($array as $news)
{
echo '
<table border="0" width="100%" align="center" class="ssi_table">
<tr>
<td><b>', $news['subject'], '</b></td>
</tr>
</table>
';
if (!$news['is_last'])
echo '
<hr width="100%" />
';
}
?>Wyskakuje błąd:
Parse error: syntax error, unexpected '[' in /public_html/modules/mod_php/mod_php.php(36) : eval()'d code on line 4Czy ktoś może poradził sobie z takim problemem ?
<?php
require_once($/forum/SSI.php');
ssi_boardNews($board = 102.0, $limit = 5, $start = null, $length = 250, $output_method = 'echo');
$array = ssi_boardNews(111.0, 5, null, 250, 'array');
foreach ($array as $news)
{
echo '
<table border="0" width="100%" align="center" class="ssi_table">
<tr>
<td><b>', $news['subject'], '</b></td>
</tr>
</table>
';
if (!$news['is_last'])
echo '
<hr width="100%" />
';
}
?>Wyskakuje błąd:
Parse error: syntax error, unexpected '[' in /public_html/modules/mod_php/mod_php.php(36) : eval()'d code on line 4Czy ktoś może poradził sobie z takim problemem ?