Milans vragen topic (heb er genoeg ;))

Gestart doorMilan22 reacties23 weergaven

23 berichten · pagina 1 van 2

Milan

Lid · Topicstarter

Berichten
8.602
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hallo,

Ik zit met 2 probleempjes:

De eerste:
Ik heb dus een textarea, maar kan de grote niet veranderen, of ik nou dit:

<textarea width="100%" height="100%" name="tekst">[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$fetch6[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]tekst[/COLOR][COLOR= #007700]];[/COLOR] ?></textarea>


of dit:

<textarea width="500px" height="500px" name="tekst">[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$fetch6[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]tekst[/COLOR][COLOR= #007700]];[/COLOR] ?></textarea>


Hij wil neit groter worden,

Vraag 2:

Als ik deze update query uitvoer:

mysql_query("UPDATE nieuws SET titel = ".$_POST[titel].", tekst = ".$_POST[tekst]." WHERE id = ".$nieuwsid."")


Krijg de error, unkown wat ik heb ingevoerd in fieldlist

Alvast bedank voor de hulp wink#Milan
0
Berichten
6.201
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Doe eens:

<textarea rows="25" cols="50">


edit, en dit:

mysql_query("UPDATE nieuws SET titel = ".$_POST[titel].", tekst = ".$_POST[tekst]." WHERE id = ".$nieuwsid."");
0
Rik

Lid

Berichten
18.393
Reputatie
0
Punten
0,04
Lid sinds
Laatst gezien
<textarea style="width:500px; height:500px;" name="tekst">[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$fetch6[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]tekst[/COLOR][COLOR= #007700]];[/COLOR] ?></textarea>


Zou wel moeten werken, gebruik ik namelijk ook smile
0
Berichten
2.837
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
unkown betekent dat hij geen kolom kan vinden met Wat ik heb ingevoerd yummie..
0
Milan

Lid · Topicstarter

Berichten
8.602
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nog een vraag:

Kan je PHP in een database zetten?
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Kan wel, maar moet je niet doen want je hebt er niks aan.
0
Rik

Lid

Berichten
18.393
Reputatie
0
Punten
0,04
Lid sinds
Laatst gezien
Lennard schreef:
Kan wel, maar moet je niet doen want je hebt er niks aan.
Nou, je kan EVAL() gebruiken ( http://php.net/eval ), maar ze noemen de eval functie niet voor niets de evil functie, omdat het gewoon té exploitgevoelig is..
0
Milan

Lid · Topicstarter

Berichten
8.602
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Daar be ik weer met mijn vraagjes:

Hoe kun je ervoor zorgen dat gebruikers © krijgen te zien, en niet het tekentje?
0
Berichten
13.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
© biggrin
0
Milan

Lid · Topicstarter

Berichten
8.602
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
goed idee sjoerd!
0
Milan

Lid · Topicstarter

Berichten
8.602
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Weer een vraagje:

Hoe zorg ik ervoor dat hyperlinks enz geen strepen hebben, en dat ik de kleur enzo kan instellen? Dat na het klikken ze toch hetzelfde zijn?
0
Erik

Lid

Berichten
7.109
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
In je CSS.
0
Rik

Lid

Berichten
18.393
Reputatie
0
Punten
0,04
Lid sinds
Laatst gezien
a, a:hover, a:active, a:visited {
color:#000000;
text-decoration: none;
}

zoiets
0
Milan

Lid · Topicstarter

Berichten
8.602
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Volgende vraag:

<form name="form1" id="form1" method="post" action="?actie=paginabeheren&paginaid=[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$paginaid[/COLOR][COLOR= #007700];[/COLOR] ?>">
        Titel:<br />
        <INPUT type="text" name="titel" value="[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$fetch3[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]titel[/COLOR][COLOR= #007700]];[/COLOR] ?>"><br />
        Inhoud:<br />
        <textarea rows="20" cols="50" name="tekst">[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$fetch3[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]tekst[/COLOR][COLOR= #007700]];[/COLOR] ?></textarea><br />
        Weergeven in menu?:<br />
        <select name="menu">
        <option value="ja">Ja</option>
        <option value="nee">Nee</option>
        </select><br />
        <input type="submit" name="Submit" value="Aanpassen" />
        </form>
        [COLOR= #0000BB]<?php[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REQUEST_METHOD[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"POST"[/COLOR][COLOR= #007700]){[/COLOR]
            [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"UPDATE pagina SET titel = "[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]titel[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]" AND tekst = "[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]tekst[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]" AND menu = "[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]menu[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]" WHERE id = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$paginaid[/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/echo"]echo[/URL] [COLOR= #DD0000]Pagina succesvol gewijzigd! Veranderingen zijn <b>niet</b> direct zichtbaar.[/COLOR][COLOR= #007700];[/COLOR]
            ?><a href="admin.php">Ga terug naar het admin panel</a> of <a href="?actie=paginabeheren"> wijzig nog een pagina.</a>


Als ik de titel verander, veranderd hij in 0?
0
Berichten
6.201
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"UPDATE pagina SET titel = "[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]titel[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]", tekst = "[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]tekst[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]", menu = "[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]menu[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]" WHERE id = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$paginaid[/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]
?>
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