Hi,
Ik heb een priveberichten script maar als ik 2 berichten met dezelfde naam heb dan weergeeft het bericht van het 1e bericht en niet van die moet zijn.
Dus bijvoorbeeld dit:
Test - Test12
Test - Testdd
Dan weergeef hij bij allebij de berichten dezelfde bericht?
Hoe kan dit?
Code
Ik heb een priveberichten script maar als ik 2 berichten met dezelfde naam heb dan weergeeft het bericht van het 1e bericht en niet van die moet zijn.
Dus bijvoorbeeld dit:
Test - Test12
Test - Testdd
Dan weergeef hij bij allebij de berichten dezelfde bericht?
Hoe kan dit?
Code
$uilQuery = $core->mysql->query("SELECT
l.naam,
l.color,
l.afdeling,
l.signature,
(
SELECT
COUNT(1)
FROM
forum_posts
WHERE
lid_id = l.id
) AS aantal_leden_posts,
u.id,
u.inhoud,
u.datum,
u.onderwerp,
u.ontvanger_id,
u.verwijderd
FROM
leden l,
uilenvleugel u
WHERE
l.id = u.verstuurder_id
AND
u.onderwerp = ".$core->entities($core->link_replace($param[2], 2))."");
if($core->mysql->num_rows($uilQuery) != 1)
{
$uilFetch = $core->mysql->fetch($uilQuery);
if($uilFetch[ontvanger_id] == $core->leden->ledeninfo[eigen][id] || $core->isLevel(alle_uilen))
{
if($uilFetch[verwijderd] == 1 && !$core->isLevel(alle_uilen))
{
echo VERWIJDERD;
}
else
{
$core->mysql->query("UPDATE
uilenvleugel
SET
gelezen = 1
WHERE
id = ".$uilFetch[id]."");
?>
<h1>[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$core[/COLOR][COLOR= #007700]->[/COLOR]entities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$uilFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]onderwerp[/COLOR][COLOR= #007700]]);[/COLOR] ?></h1>
<div id="contentgedeelte">
<table>
<tr>
<td style="width: 140px;" class="donker">
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$uilFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]datum[/COLOR][COLOR= #007700]];[/COLOR] ?>
</td>
<td class="donker" style="width: 340px;">
<div style="width: 16px; height: 16px; background: url([COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] ROOT[COLOR= #007700];[/COLOR] ?>img/report.png) no-repeat; float: left;"><a href="#" style="width: 16px; height: 16px; display: block;"></a></div>
<div style="width: 16px; height: 16px; background: url([COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] ROOT[COLOR= #007700];[/COLOR] ?>img/verwijder.png) no-repeat; float: left; margin-left: 5px;"><a href="[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] ROOT[COLOR= #007700];[/COLOR] ?>uilenvleugel/verwijder/[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$core[/COLOR][COLOR= #007700]->[/COLOR]entities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$param[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]2[/COLOR][COLOR= #007700]]);[/COLOR] ?>" style="width: 16px; height: 16px; display: block;"></a></div>
</td>
</tr>
<tr>
<td class="donker" style="width: 110px; border-right: 1px solid #fff; text-align: center;">
<a href="[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] ROOT[COLOR= #007700];[/COLOR] ?>profiel/[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$core[/COLOR][COLOR= #007700]->[/COLOR]entities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$uilFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]]);[/COLOR] ?>">[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/ucfirst"]ucfirst[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$core[/COLOR][COLOR= #007700]->[/COLOR]entities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$uilFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]]));[/COLOR] ?></a><br /><br />
<img src="http://www.one2xs.com/img/avatars/[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$core[/COLOR][COLOR= #007700]->[/COLOR]entities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$uilFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]]);[/COLOR] ?>" /><br /><br />
Posts: [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/number_format"]number_format[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$uilFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]aantal_leden_posts[/COLOR][COLOR= #007700]],[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000],[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000].[/COLOR][COLOR= #007700]);[/COLOR] ?>
</td>
<td class="donker" style="width: 340px;">
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/nl2br"]nl2br[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$core[/COLOR][COLOR= #007700]->[/COLOR]entities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$uilFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]inhoud[/COLOR][COLOR= #007700]]));[/COLOR] ?>
</td>
</tr>
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$uilFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]signature[/COLOR][COLOR= #007700]] !=[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700])
{[/COLOR]
?>
<tr>
<td class="licht" style="width: 110px; border-top: 1px solid #fff; text-align: center; ">
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$core[/COLOR][COLOR= #007700]->[/COLOR]advertentie[COLOR= #007700]->[/COLOR]weergeef[COLOR= #007700]([/COLOR][COLOR= #DD0000]100x100[/COLOR][COLOR= #007700]);[/COLOR] ?>
</td>
<td class="licht" style="width: 340px;">
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/nl2br"]nl2br[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$core[/COLOR][COLOR= #007700]->[/COLOR]entities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$uilFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]signature[/COLOR][COLOR= #007700]]));[/COLOR] ?>
</td>
</tr>
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR]
?>
</table><br /><br />
</div>
<div id="contentbot"></div>
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]Location: ../../uilenvleugel[/COLOR][COLOR= #007700]);
}
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]Location: ../../uilenvleugel[/COLOR][COLOR= #007700]);
}[/COLOR] 

