Kladblok

Gestart doorChristopher18 reacties111 weergaven

19 berichten · pagina 1 van 2

Christopher

Lid · Topicstarter

Berichten
7.757
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hoe maak ik een klad-blok zoal one2xs?
Dat je gewoon een simpel input text hebt en dat het per LID vgesaved wordt.
Eigenlijk percies zoals one2xs.
0
Berichten
5.897
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Stuur maar pm, ik heb er eentje
0
Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Waarom plaats je de code niet gewoon hier emo
0
Berichten
5.897
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Omdat het kladblok alleen werkt in eeros
0
Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Dan plaats je hem toch alsnog thumbsup
0
Berichten
5.897
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Neen want hij is niet gratis en ik raak niet meer op mijn host waar de code op staat
0
Berichten
232
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
@maartenl, EERos is een gratis systeem?
0
Krm

Lid

Berichten
6.235
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Gewoon in phpmyadmin tabel aanmaken
id, user, text

En dan textvak value="$hierjetextuittabel" en dan een save button
0
Berichten
4.367
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ultimatum schreef:
@maartenl, EERos is een gratis systeem?
ja maar, de addons moet je betalen
0
Berichten
9.953
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Zoiets zal wel moeten werken:

[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]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]submit[/COLOR][COLOR= #007700]])) {[/COLOR]
     [COLOR= #FF8000]// Hier je Querys[/COLOR]
    [COLOR= #007700]}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
?>

<form action="#" method="post".
<textarea name="tekst" value="hierophalen"></textarea>
<input type="submit" name="submit" value="Opslaan">
</form>

[COLOR= #0000BB]<?php[/COLOR]
    [COLOR= #007700]}[/COLOR]
?>
0
Christopher

Lid · Topicstarter

Berichten
7.757
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Welke query moet ik dan gebruiken heb een tabel aangemaakt:

id
user
text

Nu heb ik SELECT * FROM kladblok WHERE id ="$user"
Maar dat is zeker fout?
0
Berichten
6.722
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
id moet int zijn met auto incriminerend (Of hoe je dat ook spelt)

[COLOR= #0000BB]<?php
$query[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT text FROM kladblok WHERE user = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$user[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$fetch[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<textarea style="height: 150px; width: 250px;">[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$fetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]text[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]</textarea>[/COLOR][COLOR= #007700];[/COLOR]
?>
0
Christopher

Lid · Topicstarter

Berichten
7.757
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[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]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]submit[/COLOR][COLOR= #007700]])) {[/COLOR]

[COLOR= #0000BB]$query[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT text FROM kladblok WHERE user = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$user[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$fetch[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<textarea style="height: 150px; width: 250px;">[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$fetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]text[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]</textarea>[/COLOR][COLOR= #007700];

    }[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
?>

<form action="?p=save" method="post".
<textarea style="width:400px;" "text" rows="10" value="text"></textarea><br><?=$_POST[text]?>
<input type="submit" name="submit" value="Opslaan">
</form>

[COLOR= #0000BB]<?php[/COLOR]
    [COLOR= #007700]}[/COLOR]
?>


Nu heb ik dit..
Fout inderdaad.. Maar hoe los ik dit op?
0
Berichten
5.897
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
probeer eens

[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]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]submit[/COLOR][COLOR= #007700]])) {[/COLOR]

[COLOR= #0000BB]$query[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT text FROM kladblok WHERE user = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$user[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$fetch[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/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]<form action="?p=save" method="post">
<textarea style="height: 150px; width: 250px;">[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$fetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]text[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]</textarea>
<input type="submit" name="submit" value="Opslaan"></form>[/COLOR][COLOR= #007700];
    }[/COLOR]
?>
0
Berichten
9.953
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Christopher schreef:
[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]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]submit[/COLOR][COLOR= #007700]])) {[/COLOR]

[COLOR= #0000BB]$query[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT text FROM kladblok WHERE user = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$user[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$fetch[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<textarea style="height: 150px; width: 250px;">[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$fetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]text[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]</textarea>[/COLOR][COLOR= #007700];

    }[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
?>

<form action="?p=save" method="post".
<textarea style="width:400px;" "text" rows="10" value="text"></textarea><br><?=$_POST[text]?>
<input type="submit" name="submit" value="Opslaan">
</form>

[COLOR= #0000BB]<?php[/COLOR]
    [COLOR= #007700]}[/COLOR]
?>
Nu heb ik dit..
Fout inderdaad.. Maar hoe los ik dit op?

Wat doet hij dan niet?
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