PHP expert |
|
<?
/*PERONAL MESSAGES*/
function pm_inbox()
{
$PMQuery = mysql_query("SELECT * FROM pm WHERE ontvanger='".$_SESSION['username']."' AND trash='0' ORDER BY gelezen ASC");
?>
<table width="80%" border="1" cellspacing="0" cellpadding="0" align="center" bordercolor="#0AC8EC" class="box_tekst">
<tr>
<td background="images/box_bg.png" class="box_titel"> <img src="images/box_item.png" align="absmiddle"> Persoonlijke Berichten: Inbox</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="6" class="box_tekst">
<tr>
<td width="5%">Nr</td>
<td width="40%">Onderwerp</td>
<td width="30%">Verzender</td>
<td width="20%">Datum</td>
<td width="5%">Delete</td>
</tr>
<?php
while($M = mysql_fetch_assoc($PMQuery))
{
?>
<tr>
<td width="5%">
<?php
if($M['gelezen'] == 0)
{
echo "<img src=\"images/pm_unread.gif\" alt=\"Nog niet gelezen\">";
}
else
{
echo "<img src=\"images/pm_read.gif\" alt=\"Gelezen\">";
}
?>
</td>
<td width="40%"><a href="?page=account&action=pm_read&id=<?php echo $O['id']; ?>"><?php echo $M['onderwerp']; ?></a></td>
<td width="30%"><?php echo $M['verzender']; ?></td>
<td width="20%"><?php echo $M['datum']; ?></td>
<td width="5%"><a href="?page=account&action=pm_delete=1&id=<?php echo $M['id']; ?>">Verwijderen</a></td>
</tr>
}
</table>
</td>
</tr>
</table>
<?php
}
?>
<? /*PERONAL MESSAGES*/ function pm_inbox() { $PMQuery = mysql_query("SELECT * FROM pm WHERE ontvanger='".$_SESSION['username']."' AND trash='0' ORDER BY gelezen ASC"); ?> <table width="80%" border="1" cellspacing="0" cellpadding="0" align="center" bordercolor="#0AC8EC" class="box_tekst"> <tr> <td background="images/box_bg.png" class="box_titel"> <img src="images/box_item.png" align="absmiddle"> Persoonlijke Berichten: Inbox</td> </tr> <tr> <td> <table width="100%" border="0" cellspacing="6" class="box_tekst"> <tr> <td width="5%">Nr</td> <td width="40%">Onderwerp</td> <td width="30%">Verzender</td> <td width="20%">Datum</td> <td width="5%">Delete</td> </tr> <?php { ?> <tr> <td width="5%"> <?php if($M['gelezen'] == 0) { echo "<img src=\"images/pm_unread.gif\" alt=\"Nog niet gelezen\">"; } else { echo "<img src=\"images/pm_read.gif\" alt=\"Gelezen\">"; } ?> </td> <td width="40%"><a href="?page=account&action=pm_read&id= <?php echo $O['id']; ?>"> <?php echo $M['onderwerp']; ?></a></td> <td width="30%"> <?php echo $M['verzender']; ?></td> <td width="20%"> <?php echo $M['datum']; ?></td> <td width="5%"><a href="?page=account&action=pm_delete=1&id= <?php echo $M['id']; ?>">Verwijderen</a></td> </tr> } </table> </td> </tr> </table> <?php } ?>
Wanneer ik deze functie aanroep zegt hij PARSE ERROR: unspected '}' -> iets in die aard en na veel debug heb ik geconstateerd dat het deze functie is maar zie dus de fout niet zit hier al paar uur aan :/
groeten stijn
|