Nieuws plaatsen [PHP] + Beloning!

Gestart doorMarvinn9 reacties40 weergaven

10 berichten · pagina 1 van 1

Marvinn

Lid · Topicstarter

Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hooi!

Ik heb 2 vraagjes.

Als eerst wil ik vragen of jullie kunnen fixen dat ik normaal enters kan doen zonder
enzo.

Dat moet nu namelijk wel. Ook werkt die wysiwyg editor niet. Dus die mag er ook uit yummie
En nu vraag 2. Ik wil vraag dat je dubbele nieuws titels kan doen. Dat is dit:
}elseif(eregi("Duplicate",mysql_error())) {
            echo "Deze titel komt al voor in het nieuws archief.<br />Kies een andere.<br /><a href="javascript:history.go(-1)">Ga terug</a>";


want zelf kom ik er niet uit yummie
Als je de
s ook gefixt krijgt krijg je 0.20 beloning biggrin
[COLOR= #0000BB]<?php[/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]admin[/COLOR][COLOR= #007700]]) ||[/COLOR] [URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]nieuwsreporter[/COLOR][COLOR= #007700]]) ||[/COLOR] [URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]moderator[/COLOR][COLOR= #007700]]) ||[/COLOR] [URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]shopbeheer[/COLOR][COLOR= #007700]])) {[/COLOR]


[URL="http://www.php.net/class"]class[/URL] nieuws [COLOR= #007700]{
    function[/COLOR] nieuwsToevoegen[COLOR= #007700]([/COLOR][COLOR= #0000BB]$titel[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$categorie[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$langbericht[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$actief[/COLOR][COLOR= #007700]) {[/COLOR]
        [COLOR= #0000BB]$titel[/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]$titel[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]75[/COLOR][COLOR= #007700]));[/COLOR]
        [COLOR= #0000BB]$categorie[/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]$categorie[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]75[/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]$bericht[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]5000[/COLOR][COLOR= #007700]));[/COLOR]
        [COLOR= #0000BB]$langbericht[/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]$langbericht[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]5000[/COLOR][COLOR= #007700]));[/COLOR]
        [COLOR= #0000BB]$actief[/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]$actief[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]3[/COLOR][COLOR= #007700]));[/COLOR]
        
        [URL="http://www.php.net/setlocale"]setlocale[/URL][COLOR= #007700]([/COLOR]LC_ALL[COLOR= #007700],[/COLOR] [COLOR= #DD0000]nl_NL[/COLOR][COLOR= #007700]);[/COLOR]
        
        [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO admin_log (gebruikersnaam,datum,beschrijving,sessie_ip) VALUES ("[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruikersnaam[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]",NOW(),Nieuws bericht gepost., "[/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/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO nieuws_berichten (titel,categorie,bericht,langbericht,actief,datum,member_id) VALUES ("[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$titel[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]","[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$categorie[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]","[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]","[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$langbericht[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]","[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$actief[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]","[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/date"]date[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"y-m-d H:i:s"[/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/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]"Er is succesvol een nieuwsitem aangemaakt.<br /><strong>"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$titel[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]"</strong><br /><a href="javascript:history.go(-1)">Ga terug</a>"[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/eregi"]eregi[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Duplicate"[/COLOR][COLOR= #007700],[/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]())) {[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Deze titel komt al voor in het nieuws archief.<br />Kies een andere.<br /><a href="javascript:history.go(-1)">Ga terug</a>"[/COLOR][COLOR= #007700];
        
        }[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{
            
        }
    }
    
    function[/COLOR] nieuwsWijzigen[COLOR= #007700]([/COLOR][COLOR= #0000BB]$titel[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$categorie[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$langbericht[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$actief[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$nieuws_id[/COLOR][COLOR= #007700]) {[/COLOR]
        [COLOR= #0000BB]$titel[/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]$titel[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]75[/COLOR][COLOR= #007700]));[/COLOR]
        [COLOR= #0000BB]$categorie[/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]$categorie[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]75[/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]$bericht[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]99999[/COLOR][COLOR= #007700]));[/COLOR]
        [COLOR= #0000BB]$langbericht[/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]$langbericht[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]99999[/COLOR][COLOR= #007700]));[/COLOR]
        [COLOR= #0000BB]$actief[/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]$actief[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]3[/COLOR][COLOR= #007700]));[/COLOR]
        [COLOR= #0000BB]$nieuws_id[/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]$nieuws_id[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]30[/COLOR][COLOR= #007700]));[/COLOR]
        [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO admin_log (gebruikersnaam,datum,beschrijving,sessie_ip) VALUES ("[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruikersnaam[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]",NOW(),Nieuwsbericht gewijzicht., "[/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/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"UPDATE nieuws_berichten SET titel="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$titel[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]",categorie="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$categorie[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]",bericht="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]",langbericht="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$langbericht[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]",actief="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$actief[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" WHERE nieuws_id="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$nieuws_id[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" ORDER BY datum DESC"[/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]"Dit nieuwsitem is succesvol gewijzigd.<br /><strong>"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$titel[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]"</strong><br /><a href="javascript:history.go(-1)">Ga terug</a>"[/COLOR][COLOR= #007700];
        }[/COLOR][URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/eregi"]eregi[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Duplicate"[/COLOR][COLOR= #007700],[/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]())) {[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Deze titel komt al voor in het nieuws archief.<br />Kies een andere.<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]"Er is iets fout gegaan.<br /><a href="javascript:history.go(-2)">Ga terug</a>"[/COLOR][COLOR= #007700];
        }
    }
    
    function[/COLOR] nieuwsVerwijderen[COLOR= #007700]([/COLOR][COLOR= #0000BB]$nieuws_id[/COLOR][COLOR= #007700]) {[/COLOR]
        [COLOR= #0000BB]$nieuws_id[/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]$nieuws_id[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]30[/COLOR][COLOR= #007700]));[/COLOR]
        
        [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO admin_log (gebruikersnaam,datum,beschrijving,sessie_ip) VALUES ("[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruikersnaam[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]",NOW(),Nieuwsbericht verwijdert., "[/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/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"DELETE FROM nieuws_berichten WHERE nieuws_id="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$nieuws_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]"Dit nieuwsitem is succesvol verwijderd.<br /><a href="javascript:history.go(-2)">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]"Er is iets fout gegaan, Misschien bestaat hij niet meer.<br><a href="javascript:history.go(-1)">Ga terug</a>"[/COLOR][COLOR= #007700];
        }
    }[/COLOR]
    
    [COLOR= #FF8000]// nieuwe function[/COLOR]
[COLOR= #007700]}[/COLOR]

[COLOR= #0000BB]$nieuws[/COLOR] [COLOR= #007700]= new[/COLOR] nieuws[COLOR= #007700]();[/COLOR]



    ?>
    <script type="text/javascript" src="editor/scripts/wysiwyg.js"></script>
    <script type="text/javascript" src="editor/scripts/wysiwyg-settings.js"></script>
    <!-- 
        Attach the editor on the textareas
    -->
    <script type="text/javascript">
        // Use it to attach the editor to all textareas with full featured setup
        //WYSIWYG.attach(all, full);
        
        // Use it to attach the editor directly to a defined textarea
        WYSIWYG.attach(bericht,small); // default setup
        WYSIWYG.attach(langbericht,small); // default setup
    </script>
    [COLOR= #0000BB]<?php[/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]"nieuws"[/COLOR] [COLOR= #007700]&&[/COLOR] [URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]s[/COLOR][COLOR= #007700]])) {[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]s[/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/echo"]echo[/URL] [COLOR= #0000BB]$nieuws[/COLOR][COLOR= #007700]->[/COLOR]nieuwsToevoegen[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]titel[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]categorie[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]langbericht[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]actief[/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=admin_nieuws&a=nieuws&s=toevoegen" method="post">
                    <table width="300">
                        <tr><b>Let op: Heb jij een plaatje? <Br>Upload deze via: <a href="upload_medewerkers_.php" target="_blank">upload_medewerkers_.php</a></b>
                            <td>Titel</td>
                            <td><input type="text" name="titel" maxlength="25" /></td>
                        </tr>
                        <tr>
                            <td>Categorie:</td>
                             <td><select name="categorie" size="1">
                                  <option selected="selected" disabled="disabled">Categorie</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/nl.png&quot; border=&quot;0&quot; /&gt;">Nederland</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/fail.png&quot; border=&quot;0&quot; /&gt;">Bug/fail</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/com.png&quot; border=&quot;0&quot; /&gt;">Engeland</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/br.png&quot; border=&quot;0&quot; /&gt;">Brazili</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/de.png&quot; border=&quot;0&quot; /&gt;">Duitsland</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/no.png&quot; border=&quot;0&quot; /&gt;">Norwegen</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/ch.png&quot; border=&quot;0&quot; /&gt;">Zwitserland</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/es.png&quot; border=&quot;0&quot; /&gt;">Spanje</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/dk.png&quot; border=&quot;0&quot; /&gt;">Denemarken</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/fi.png&quot; border=&quot;0&quot; /&gt;">Finland</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/it.png&quot; border=&quot;0&quot; /&gt;">Itali</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/fr.png&quot; border=&quot;0&quot; /&gt;">Frankrijk</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/up.png&quot; border=&quot;0&quot; /&gt;">Updates</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/si.png&quot; border=&quot;0&quot; /&gt;">Habbotjes.be</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/sh.png&quot; border=&quot;0&quot; /&gt;">Shop nieuws</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/zw.png&quot; border=&quot;0&quot; /&gt;">Zweden</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/ov.png&quot; border=&quot;0&quot; /&gt;">Overig</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/co.png&quot; border=&quot;0&quot; /&gt;">competitie</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/in.png&quot; border=&quot;0&quot; /&gt;">Interview</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/st.png&quot; border=&quot;0&quot; /&gt;">Strip</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/lo.png&quot; border=&quot;0&quot; /&gt;">Loterij</option>
                                  </select></td>
                        </tr>
                        <tr>
                            <td colspan="2">Kort Bericht</td>
                        </tr>
                        <tr>
                            <td colspan="2"><textarea id="bericht" name="bericht" style="background:#FFFFFF;" cols="60" rows="20"></textarea></td>
                        </tr>
                        <tr>
                            <td colspan="2">Lang Bericht (<a href="http://www.habbotjes.be/code/html.php" class="con"><b>Klik voor html codes!)</b></a></td>
                        </tr>
                        <tr>
                            <td colspan="2"><textarea id="langbericht" name="langbericht" style="background:#FFFFFF;" cols="60" rows="20"></textarea></td>
                        </tr>
                        <tr>
                            <td>Aan of uit?</td>
                            <td><input type="radio" checked="checked" name="actief" value="aan" /> Aan <input type="radio" name="actief" value="uit" /> Uit </td>
                        </tr>
                        <tr>
                            <th colspan="2"><input type="submit" value="Toevoegen" name="toevoegen" /></th>
                        </tr>
                    </table>
                </form>
                [COLOR= #0000BB]<?php[/COLOR]
            [COLOR= #007700]}
        }[/COLOR][URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]s[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"wijzigen"[/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]wijzigen[/COLOR][COLOR= #007700]])) {[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$nieuws[/COLOR][COLOR= #007700]->[/COLOR]nieuwsWijzigen[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]titel[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]categorie[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]langbericht[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]actief[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]nieuws_id[/COLOR][COLOR= #007700]]);
            }[/COLOR][URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]nid[/COLOR][COLOR= #007700]])) {[/COLOR]
                [COLOR= #0000BB]$nid[/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]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]nid[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]30[/COLOR][COLOR= #007700]));[/COLOR]
                [COLOR= #0000BB]$sql[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM  nieuws_berichten WHERE nieuws_id="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$nid[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" ORDER BY datum DESC"[/COLOR][COLOR= #007700]);[/COLOR]
                [COLOR= #0000BB]$row[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql[/COLOR][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=admin_nieuws&a=nieuws&s=wijzigen" method="post">
                    <input type="hidden" name="nieuws_id" value="[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]nid[/COLOR][COLOR= #007700]];[/COLOR] ?>" />
                    <table width="300">
                        <tr><b>Let op: Heb jij een plaatje? <Br>Upload deze via: <a href="http://www.habbotjes.be/upload.php" target="_blank">http://www.habbotjes.be/upload.php</a></b>
                            <td>Titel</td>
                            <td><input type="text" name="titel" [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"value=""[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/stripslashes"]stripslashes[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]titel[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]"""[/COLOR][COLOR= #007700];[/COLOR] ?> maxlength="25" /></td>
                        </tr>
                        <tr>
                            <td>Categorie:</td>
                             <td><select name="categorie" size="1">
                                  <option selected="selected" disabled="disabled">Categorie</option>


<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/nl.png&quot; border=&quot;0&quot; /&gt;">Nederland</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/fail.png&quot; border=&quot;0&quot; /&gt;">Bug/fail</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/com.png&quot; border=&quot;0&quot; /&gt;">Engeland</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/br.png&quot; border=&quot;0&quot; /&gt;">Brazili</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/de.png&quot; border=&quot;0&quot; /&gt;">Duitsland</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/no.png&quot; border=&quot;0&quot; /&gt;">Norwegen</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/ch.png&quot; border=&quot;0&quot; /&gt;">Zwitserland</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/es.png&quot; border=&quot;0&quot; /&gt;">Spanje</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/dk.png&quot; border=&quot;0&quot; /&gt;">Denemarken</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/fi.png&quot; border=&quot;0&quot; /&gt;">Finland</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/it.png&quot; border=&quot;0&quot; /&gt;">Itali</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/fr.png&quot; border=&quot;0&quot; /&gt;">Frankrijk</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/up.png&quot; border=&quot;0&quot; /&gt;">Updates</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/si.png&quot; border=&quot;0&quot; /&gt;">Habbotjes.be</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/sh.png&quot; border=&quot;0&quot; /&gt;">Shop nieuws</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/zw.png&quot; border=&quot;0&quot; /&gt;">Zweden</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/ov.png&quot; border=&quot;0&quot; /&gt;">Overig</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/co.png&quot; border=&quot;0&quot; /&gt;">competitie</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/in.png&quot; border=&quot;0&quot; /&gt;">Interview</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/st.png&quot; border=&quot;0&quot; /&gt;">Strip</option>
<option value="&lt;img src=&quot;http://www.habbotjes.be/img/nieuws/lo.png&quot; border=&quot;0&quot; /&gt;">Loterij</option>
                                  </select></td>
                        </tr>
                        <tr>
                            <td colspan="2">Kort Bericht</td>
                        </tr>
                        <tr>
                            <td colspan="2"><textarea id="bericht" name="bericht" style="background:#FFFFFF;" cols="60" rows="20">[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/stripslashes"]stripslashes[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]]);[/COLOR] ?></textarea></td>
                        </tr>
                        <tr>
                            <td colspan="2">Lang Bericht (<a href="http://www.habbotjes.be/code/html.php" class="con"><b>Klik voor html codes!)</b></a></td>
                        </tr>
                        <tr>
                            <td colspan="2"><textarea id="langbericht" name="langbericht" style="background:#FFFFFF;" cols="60" rows="20">[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/stripslashes"]stripslashes[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]langbericht[/COLOR][COLOR= #007700]]);[/COLOR] ?></textarea></td>
                        </tr>
                        <tr>
                            <td>Aan of uit?</td>
                            <td><input type="radio" [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]actief[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"aan"[/COLOR][COLOR= #007700])[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"checked="checked""[/COLOR][COLOR= #007700];[/COLOR] ?> name="actief" value="aan" /> Aan <input type="radio" [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]actief[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"uit"[/COLOR][COLOR= #007700])[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"checked="checked""[/COLOR][COLOR= #007700];[/COLOR] ?> name="actief" value="uit" /> Uit </td>
                        </tr>
                        <tr>
                            <th colspan="2"><input type="submit" value="Wijzigen" name="wijzigen" /></th>
                        </tr>
                    </table>
                </form>
                [COLOR= #0000BB]<?php[/COLOR]
            [COLOR= #007700]}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
                [COLOR= #0000BB]$sql[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM nieuws_berichten ORDER BY datum DESC"[/COLOR][COLOR= #007700]);[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<table width="540">
                        <tr>
                            <td>Titel</td>
                            
                    
                            <td>Actief</td>
                            <td>Wijzigen/verwijderen</td>
                        </tr>"[/COLOR][COLOR= #007700];[/COLOR]
                [URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql[/COLOR][COLOR= #007700])) {[/COLOR]
                    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<tr>
                            <td>"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]titel[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"</td>
                        
                            <td>"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]actief[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"</td>
                            <td><a href=?p=admin_nieuws&a=nieuws&s=wijzigen&nid="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]nieuws_id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]">Wijzigen</a><br />
                                <a href=?p=admin_nieuws&a=nieuws&s=verwijderen&nid="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]nieuws_id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]">Verwijderen</a>
                            </td>
                        </tr>"[/COLOR][COLOR= #007700];
                }[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"</table>"[/COLOR][COLOR= #007700];
            }
        }[/COLOR][URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]s[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"verwijderen"[/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]verwijderen[/COLOR][COLOR= #007700]])) {[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$nieuws[/COLOR][COLOR= #007700]->[/COLOR]nieuwsVerwijderen[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]nieuws_id[/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=admin_nieuws&a=nieuws&s=verwijderen" method="post">
                    <input type="hidden" value="[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]nid[/COLOR][COLOR= #007700]][/COLOR] ?>" name="nieuws_id" />
                    <input type="submit" value="Verwijderen" name="verwijderen" />
                </form>
                [COLOR= #0000BB]<?php[/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]"&raquo; <a href="?p=admin_nieuws&a=nieuws&s=toevoegen">Nieuws Toevoegen</a><br />
        &raquo; <a href="?p=admin_nieuws&a=nieuws&s=wijzigen">Nieuws Wijzigen/Verwijderen</a><br />"[/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]"Zou wel leuk zijn als je admin was.<br /><a href=# onclick=history.go(-1)>Ga terug</a>"[/COLOR][COLOR= #007700];
}[/COLOR]
?>
    <script language="javascript1.2">
    generate_wysiwyg(bericht);
    generate_wysiwyg(langbericht);
    </script>
0
Marvinn

Lid · Topicstarter

Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
bump
0
Janm

Lid

Berichten
6.170
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
. nl2br($aFetch[iets]) .

Dus een nl2br( om de variables en sluiten met een ).

Of als je gewoon een enter wilt:

echo
;
?>
0
Marvinn

Lid · Topicstarter

Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Tnx het werkt smile
Alleen kan iemand dubbele nieuws titels plaatsen oplossen?

Want ik heb soms wel eens de zelfde nieuws titel nodig.

Aah nog een kleine bug.

Als ik nieuws aanpas staat er:

Hooi!

BLABLABLA

Groetjes Nickjexx

Als ik het bericht aanpas staat er:

Hooi!

BLABLABLA

Groetjes Nickjexx
0
Janm

Lid

Berichten
6.170
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Nou om een post variable.
Dus als je dit hebt:

mysql_query("UPDATE leden SET bio = " . mysql_real_escape_string(stripslashes(nl2br($_POST[bio]))) . " WHERE naam = " . mysql_real_escape_string($_SESSION[login]) . "") or die(mysql_error());
0
Berichten
665
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
gebruik je een database?
dan post je daar de topics en dan include je die weer uit de db op ge pagina!
tip: werk wel met ID nummers bye
0
Marvinn

Lid · Topicstarter

Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Saliox schreef:
Nou om een post variable.
Dus als je dit hebt:

mysql_query("UPDATE leden SET bio = " . mysql_real_escape_string(stripslashes(nl2br($_POST[bio]))) . " WHERE naam = " . mysql_real_escape_string($_SESSION[login]) . "") or die(mysql_error());
Waar moet dat?
0
Marvinn

Lid · Topicstarter

Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
bump
0
Berichten
10.409
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Lwebdesign schreef:
gebruik je een database?
dan post je daar de topics en dan include je die weer uit de db op ge pagina!
tip: werk wel met ID nummers bye
Tuurlijk, je ziet toch dat hij ze ophaalt uit de DB
0
Berichten
994
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Gewoon met nl2br?
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren