PHP interesse |
|
uihm, heb hier weer een rare error gevonden
Citaat: Parse error: parse error, unexpected $ in /home/devnoxbe/public_html/casemodding/news/news.php on line 102 her rare hieraan is, dat op regel 102 (de laatste regel dus) er geen $ staan
wie kan mij helpen?
<?
$max['bericht'] = 5;
$sQuery1 = "SELECT `*` FROM `news`";
if(!$sResult1 = MySQL_Query($sQuery1))
{
echo "Error!- Query kan niet uitgevoerd worden!<BR>";
echo MySQL_Error();
echo "<BR>";
echo MySQL_Errno();
} else
{
$iAantal1 = MySQL_Num_Rows($sResult1);
if(IsSet($_GET['nav']))
{
$nav = $_GET['nav'];
} else
{
$nav = "";
}
$nav = new pagenav ($iAantal1, $max['bericht'], $nav, "page=home");
$van = $nav->get_startpoint();
$sQuery = "SELECT `*` FROM `news`ORDER BY `datum` ASC";
if(!$sResult = MySQL_Query($sQuery))
{
echo "Error!- sQuery kan niet uitgevoerd worden!<BR>";
echo MySQL_Error();
echo "<BR>";
echo MySQL_Errno();
} else
{
$iNum = MySQL_Num_Rows($sResult);
if($iNum == 0)
{
echo('nog geen nieuwsberichten in de database!');
}
else
{
while($obj = mysql_fetch_object($sResult))
{
$inhoud = stripslashes($obj->inhoud);
$inhoud = afkorten($inhoud);
$inhoud = ubb($inhoud);
?>
<table width="993" border="0">
<tr>
<td width="409">gepost op: <?=stripslashes($obj->datum); ?> om: <?=stripslashes($obj->uur); ?> </td>
<td width="422">auteur:
<?=stripslashes($obj->auteur); ?></td>
<td width="148"> </td>
</tr>
<tr>
<td colspan="2"><?=$inhoud; ?></td>
<?php if (!empty($obj->fotourl)) { ?>
<td><img src="<?=stripslashes($obj->fotourl); ?>" width="148" height="102"></td>
<?php
}
?>
</tr>
<tr>
<td><?php if (!isset($_SESSION['ingelogd'])) { ?> reageer <? } ?></td>
<td>aantal reacties: 0 </td>
<td> </td>
</tr>
</table>
<br>
<?
}
//navigatie aanroepen
$tekst = $nav->makenav();
?>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="2" class="tekst">
<tr>
<td width="23%" style=" border-bottom: 1px dashed #CCCCCC; border-top: 1px dashed #CCCCCC; border-left: 1px dashed #CCCCCC; border-right: 1px dashed #CCCCCC; line-height: 20px;"><div align="center" style="color:#626262; ">
<div align="left"><img src="layout/profiel/images/vorige.gif" width="15" height="15" border="0" align="absmiddle"> <? echo $tekst[0]; ?>
</div>
</div></td>
<td width="54%" style=" border-bottom: 1px dashed #CCCCCC; border-top: 1px dashed #CCCCCC; border-left: 1px dashed #CCCCCC; border-right: 1px dashed #CCCCCC; line-height: 20px;">
<div align="center">
<?
//cijfers
for($i = 1; $i < count($tekst) - 1; $i++)
{
echo $tekst[$i];
}
?>
</div>
</td>
<td width="23%" style=" border-bottom: 1px dashed #CCCCCC; border-top: 1px dashed #CCCCCC; border-left: 1px dashed #CCCCCC; border-right: 1px dashed #CCCCCC; line-height: 20px;"><div align="right"><? echo $tekst[count($tekst) - 1]; ?> <img src="layout/profiel/images/volgende.gif" width="15" height="15" border="0" align="absmiddle"></div></td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
</table>
<?
}
?>
<? $max['bericht'] = 5; $sQuery1 = "SELECT `*` FROM `news`"; { echo "Error!- Query kan niet uitgevoerd worden!<BR>"; } else { { $nav = $_GET['nav']; } else { $nav = ""; } $nav = new pagenav ($iAantal1, $max['bericht'], $nav, "page=home"); $van = $nav->get_startpoint(); $sQuery = "SELECT `*` FROM `news`ORDER BY `datum` ASC"; { echo "Error!- sQuery kan niet uitgevoerd worden!<BR>"; } else { if($iNum == 0) { echo('nog geen nieuwsberichten in de database!'); } else { { $inhoud = afkorten($inhoud); $inhoud = ubb($inhoud); ?> <table width="993" border="0"> <tr> <td width="422">auteur: <td width="148"> </td> </tr> <tr> <td colspan="2"><?=$inhoud; ?></td> <?php if (!empty($obj->fotourl)) { ?> <td><img src=" <?=stripslashes($obj->fotourl); ?>" width="148" height="102"></td> <?php } ?> </tr> <tr> <td> <?php if (!isset($_SESSION['ingelogd'])) { ?> reageer <? } ?></td> <td>aantal reacties: 0 </td> <td> </td> </tr> </table> <br> <? } //navigatie aanroepen $tekst = $nav->makenav(); ?> <table width="95%" border="0" align="center" cellpadding="0" cellspacing="2" class="tekst"> <tr> <td width="23%" style=" border-bottom: 1px dashed #CCCCCC; border-top: 1px dashed #CCCCCC; border-left: 1px dashed #CCCCCC; border-right: 1px dashed #CCCCCC; line-height: 20px;"><div align="center" style="color:#626262; "> <div align="left"><img src="layout/profiel/images/vorige.gif" width="15" height="15" border="0" align="absmiddle"> <? echo $tekst[0]; ?> </div> </div></td> <td width="54%" style=" border-bottom: 1px dashed #CCCCCC; border-top: 1px dashed #CCCCCC; border-left: 1px dashed #CCCCCC; border-right: 1px dashed #CCCCCC; line-height: 20px;"> <div align="center"> <? //cijfers for($i = 1; $i < count($tekst) - 1; $i++) { } ?> </div> </td> <td width="23%" style=" border-bottom: 1px dashed #CCCCCC; border-top: 1px dashed #CCCCCC; border-left: 1px dashed #CCCCCC; border-right: 1px dashed #CCCCCC; line-height: 20px;"><div align="right"> <? echo $tekst[count($tekst) - 1]; ?> <img src="layout/profiel/images/volgende.gif" width="15" height="15" border="0" align="absmiddle"></div></td> </tr> <tr> <td colspan="3"> </td> </tr> </table> <? } ?>
|