Wie kan maken dat je bij PHPmenno 25 muntjes moet betalen voor een bericht erin te zetten??
PHPmenno berichtenbalk
de gewone berichtenbalk kan je al veranderen bij instelingen.php kan je dat invullen 

ja bij instellingen staad hoeveel punten je moet betalen als het goed is daar staad nu 0 maak daar 25 van als dat niet lukt help ik je wel verder
Nielsie:
de gewone berichtenbalk kan je al veranderen bij instelingen.php kan je dat invullen
Nee, dat kan niet.
de gewone berichtenbalk kan je al veranderen bij instelingen.php kan je dat invullen

Nee, dat kan niet.
ok ik maak hem wel voor je om rond 10 uur
als het me lukt
als het me lukt
Gewoon een query erbij maken dat er x aantal muntjes worden afgeschreven lijkt me niet zo moeilijk, alleen moet je wel een check maken of deze persoon wel meer muntjes heeft dan die x aantal muntjes
marijnnn ik maak hem voor rnnet en plaats hem ook hier op one2xs voor mensen die hem altijd wouden
Phpkerem:
marijnnn ik maak hem voor rnnet en plaats hem ook hier op one2xs voor mensen die hem altijd wouden
Is goed, anders wou ik hem ook wel maken, maarja, dat bescheelt mij weer tijd...
marijnnn ik maak hem voor rnnet en plaats hem ook hier op one2xs voor mensen die hem altijd wouden
Is goed, anders wou ik hem ook wel maken, maarja, dat bescheelt mij weer tijd...
[COLOR= #0000BB]<?
$result[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM leden WHERE id = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]member_id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
[URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$list[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$result[/COLOR][COLOR= #007700])){[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$list[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]saldo[/COLOR][COLOR= #007700]] <[/COLOR] [COLOR= #DD0000]25[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Saldo te laag!"[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<?php
if(isset($_SESSION[id])) {
if(isset($_GET[a])) {
if($_GET[a] == "[/COLOR]toevoegen[COLOR= #DD0000]") {
if(isset($_POST[toevoegen]) && !empty($_POST[bericht])) {
$bericht = mysql_real_escape_string(substr($_POST[bericht],0,MAXTEKSTINBERICHTENBALK));
// Spam beveiliging start //
$timeoutseconds = 300;
$timestamp = time();
$timeout = $timestamp-$timeoutseconds;
mysql_query("[/COLOR]DELETE FROM berichten_balk_ip WHERE moment[COLOR= #007700]<[/COLOR][COLOR= #0000BB]$timeout[/COLOR] AND ip[COLOR= #007700]=[/COLOR][COLOR= #DD0000]".$_SERVER[[/COLOR]REMOTE_ADDR[COLOR= #DD0000]]."");
$sql_spam = mysql_query("[/COLOR]SELECT [COLOR= #007700]*[/COLOR] FROM berichten_balk_ip WHERE ip[COLOR= #007700]=[/COLOR][COLOR= #DD0000]".$_SERVER[[/COLOR]REMOTE_ADDR[COLOR= #DD0000]]."");
if(mysql_num_rows($sql_spam) == 1) {
echo "[/COLOR]Je mag maar [COLOR= #0000BB]1[/COLOR] keer in de [COLOR= #0000BB]5[/COLOR] minuten een bericht posten in de berichtenbalk[COLOR= #007700].<[/COLOR]br /[COLOR= #007700]><[/COLOR]a href[COLOR= #007700]=[/COLOR][COLOR= #DD0000]javascript:history.go(-1)[/COLOR][COLOR= #007700]>[/COLOR]Ga terug[COLOR= #007700]<[/COLOR]/a[COLOR= #007700]>[/COLOR][COLOR= #DD0000]";
}else{
/// spam beveiliging einde //
mysql_query("[/COLOR]INSERT INTO berichten_balk_ip [COLOR= #007700]([/COLOR]ip[COLOR= #007700],[/COLOR]moment[COLOR= #007700])[/COLOR] VALUES [COLOR= #007700]([/COLOR][COLOR= #DD0000]".$_SERVER[[/COLOR]REMOTE_ADDR[COLOR= #DD0000]]."[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]".$timestamp."[/COLOR][COLOR= #007700])[/COLOR][COLOR= #DD0000]");
mysql_query("[/COLOR]INSERT INTO berichten_balk [COLOR= #007700]([/COLOR]bericht[COLOR= #007700],[/COLOR]member_id[COLOR= #007700])[/COLOR] VALUES [COLOR= #007700]([/COLOR][COLOR= #DD0000]".$bericht."[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]".$_SESSION[[/COLOR]id[COLOR= #DD0000]]."[/COLOR][COLOR= #007700])[/COLOR][COLOR= #DD0000]");
if(mysql_error() == "") {
echo "[/COLOR]Je bericht is succesvol gepost[COLOR= #007700],[/COLOR] Je kan hem nu bekijken[COLOR= #007700].<[/COLOR]br /[COLOR= #007700]><[/COLOR]a href[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"javascript:history.go(-1)">Ga terug</a>"[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Dit bericht is al een keer gepost.<br />
Het kan ook zijn dat er een andere fout is opgetreden.<br><a href="javascript:history.go(-1)">Ga terug</a>"[/COLOR][COLOR= #007700];
}
}
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
?>
<form action="[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_SELF[/COLOR][COLOR= #007700]][/COLOR] ?>?p=berichtenbalk&a=toevoegen" method="post">
<table width="300">
<tr>
<td>Bericht - Maximaal [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] MAXTEKSTINBERICHTENBALK[COLOR= #007700];[/COLOR] ?> tekens</td>
</tr>
<tr>
<td><textarea name="bericht" cols="30" rows="10"></textarea></td>
</tr>
<tr>
<th colspan="2"><input type="submit" name="toevoegen" value="Toevoegen" /></th>
</tr>
</table>
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}
}
}
}[/COLOR]
?>";
mysql_query("UPDATE leden SET saldo = saldo - 25 WHERE id = ".$_SESSION[member_id]."");
}
} dit is berichtenbalk.php
Hij schrijft nu altijd 25 muntjes af.
Gebruik dit:
Gebruik dit:
[COLOR= #0000BB]<?
$result[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM leden WHERE id = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]member_id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
[URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$list[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$result[/COLOR][COLOR= #007700])){[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$list[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]saldo[/COLOR][COLOR= #007700]] <[/COLOR] [COLOR= #DD0000]25[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Saldo te laag!"[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<?php
if(isset($_SESSION[id])) {
if(isset($_GET[a])) {
if($_GET[a] == "[/COLOR]toevoegen[COLOR= #DD0000]") {
if(isset($_POST[toevoegen]) && !empty($_POST[bericht])) {
$bericht = mysql_real_escape_string(substr($_POST[bericht],0,MAXTEKSTINBERICHTENBALK));
// Spam beveiliging start //
$timeoutseconds = 300;
$timestamp = time();
$timeout = $timestamp-$timeoutseconds;
mysql_query("[/COLOR]DELETE FROM berichten_balk_ip WHERE moment[COLOR= #007700]<[/COLOR][COLOR= #0000BB]$timeout[/COLOR] AND ip[COLOR= #007700]=[/COLOR][COLOR= #DD0000]".$_SERVER[[/COLOR]REMOTE_ADDR[COLOR= #DD0000]]."");
$sql_spam = mysql_query("[/COLOR]SELECT [COLOR= #007700]*[/COLOR] FROM berichten_balk_ip WHERE ip[COLOR= #007700]=[/COLOR][COLOR= #DD0000]".$_SERVER[[/COLOR]REMOTE_ADDR[COLOR= #DD0000]]."");
if(mysql_num_rows($sql_spam) == 1) {
echo "[/COLOR]Je mag maar [COLOR= #0000BB]1[/COLOR] keer in de [COLOR= #0000BB]5[/COLOR] minuten een bericht posten in de berichtenbalk[COLOR= #007700].<[/COLOR]br /[COLOR= #007700]><[/COLOR]a href[COLOR= #007700]=[/COLOR][COLOR= #DD0000]javascript:history.go(-1)[/COLOR][COLOR= #007700]>[/COLOR]Ga terug[COLOR= #007700]<[/COLOR]/a[COLOR= #007700]>[/COLOR][COLOR= #DD0000]";
}else{
/// spam beveiliging einde //
mysql_query("[/COLOR]INSERT INTO berichten_balk_ip [COLOR= #007700]([/COLOR]ip[COLOR= #007700],[/COLOR]moment[COLOR= #007700])[/COLOR] VALUES [COLOR= #007700]([/COLOR][COLOR= #DD0000]".$_SERVER[[/COLOR]REMOTE_ADDR[COLOR= #DD0000]]."[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]".$timestamp."[/COLOR][COLOR= #007700])[/COLOR][COLOR= #DD0000]");
mysql_query("[/COLOR]INSERT INTO berichten_balk [COLOR= #007700]([/COLOR]bericht[COLOR= #007700],[/COLOR]member_id[COLOR= #007700])[/COLOR] VALUES [COLOR= #007700]([/COLOR][COLOR= #DD0000]".$bericht."[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]".$_SESSION[[/COLOR]id[COLOR= #DD0000]]."[/COLOR][COLOR= #007700])[/COLOR][COLOR= #DD0000]");
mysql_query("[/COLOR]UPDATE leden SET saldo [COLOR= #007700]=[/COLOR] saldo [COLOR= #007700]-[/COLOR] [COLOR= #0000BB]25[/COLOR] WHERE id [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]".$_SESSION[member_id]."");
if(mysql_error() == "") {
echo "[/COLOR]Je bericht is succesvol gepost[COLOR= #007700],[/COLOR] Je kan hem nu bekijken[COLOR= #007700].<[/COLOR]br /[COLOR= #007700]><[/COLOR]a href[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"javascript:history.go(-1)">Ga terug</a>"[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Dit bericht is al een keer gepost.<br />
Het kan ook zijn dat er een andere fout is opgetreden.<br><a href="javascript:history.go(-1)">Ga terug</a>"[/COLOR][COLOR= #007700];
}
}
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
?>
<form action="[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_SELF[/COLOR][COLOR= #007700]][/COLOR] ?>?p=berichtenbalk&a=toevoegen" method="post">
<table width="300">
<tr>
<td>Bericht - Maximaal [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] MAXTEKSTINBERICHTENBALK[COLOR= #007700];[/COLOR] ?> tekens</td>
</tr>
<tr>
<td><textarea name="bericht" cols="30" rows="10"></textarea></td>
</tr>
<tr>
<th colspan="2"><input type="submit" name="toevoegen" value="Toevoegen" /></th>
</tr>
</table>
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}
}
}
}[/COLOR]
?>";
}
}
?> ooh kan ook maar ze werken allebij gewoon
Trouwens hoe wil je
Zo dan..
[COLOR= #0000BB]<?
$result[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM leden WHERE id = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]member_id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
[URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$list[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$result[/COLOR][COLOR= #007700])){[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$list[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]saldo[/COLOR][COLOR= #007700]] <[/COLOR] [COLOR= #DD0000]25[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Saldo te laag!"[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]])) {[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]a[/COLOR][COLOR= #007700]])) {[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]a[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"toevoegen"[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]toevoegen[/COLOR][COLOR= #007700]]) && ![/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]])) {[/COLOR]
[COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/substr"]substr[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR]MAXTEKSTINBERICHTENBALK[COLOR= #007700]));[/COLOR]
[COLOR= #FF8000]// Spam beveiliging start //[/COLOR]
[COLOR= #0000BB]$timeoutseconds[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]300[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$timestamp[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/time"]time[/URL][COLOR= #007700]();[/COLOR]
[COLOR= #0000BB]$timeout[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$timestamp[/COLOR][COLOR= #007700]-[/COLOR][COLOR= #0000BB]$timeoutseconds[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"DELETE FROM berichten_balk_ip WHERE moment<$timeout AND ip="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$sql_spam[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM berichten_balk_ip WHERE ip="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql_spam[/COLOR][COLOR= #007700]) ==[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Je mag maar 1 keer in de 5 minuten een bericht posten in de berichtenbalk.<br /><a href=javascript:history.go(-1)>Ga terug</a>"[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
[COLOR= #FF8000]/// spam beveiliging einde //[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO berichten_balk_ip (ip,moment) VALUES ("[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]","[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$timestamp[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]")"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO berichten_balk (bericht,member_id) VALUES ("[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]","[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]")"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"UPDATE leden SET saldo = saldo - 25 WHERE id = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]member_id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]() ==[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Je bericht is succesvol gepost, Je kan hem nu bekijken.<br /><a href="javascript:history.go(-1)">Ga terug</a>"[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Dit bericht is al een keer gepost.<br />
Het kan ook zijn dat er een andere fout is opgetreden.<br><a href="javascript:history.go(-1)">Ga terug</a>"[/COLOR][COLOR= #007700];
}
}
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
?>
<form action="[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_SELF[/COLOR][COLOR= #007700]][/COLOR] ?>?p=berichtenbalk&a=toevoegen" method="post">
<table width="300">
<tr>
<td>Bericht - Maximaal [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] MAXTEKSTINBERICHTENBALK[COLOR= #007700];[/COLOR] ?> tekens</td>
</tr>
<tr>
<td><textarea name="bericht" cols="30" rows="10"></textarea></td>
</tr>
<tr>
<th colspan="2"><input type="submit" name="toevoegen" value="Toevoegen" /></th>
</tr>
</table>
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}
}
}
}
}
}[/COLOR]
?> Marijnnn:
Trouwens hoe wil je
ik dacht daar helemaal niet aan
Trouwens hoe wil je
ik dacht daar helemaal niet aan