Fanhabbo schreef:Zoek maar op : sessionEen wachtwoord.Eerdere citaten tonen
Vriendje schreef:Hoe bedoel je beveiligen?
Acc en del
Dan moet je loginsysteem maken. Ik raad je aan om de wachtwoorden op te slaan in een DB
1. Script werkt niet!
1. Uitleg klopt niet!
Gamedealer schreef:1. Uitleg klopt niet!
Vriendje schreef:Als ik iets wil keuren veranderd er niks aan de tabel keurDus? Wat moeten wij daarmee? Deatils??!
Klopt, want de tabel is moppen?
update moppen set keur
dus dat klopt.
dus dat klopt.
Ja, dus je update de tabel moppen en niet keur.
Ik vind ding in de code maar vind dat nergens meer terug.
toevoeging op 19 februari 2012, 16
17:
moppen= tabel
keur= kolom
toch?
toevoeging op 19 februari 2012, 16
17:Gamedealer schreef:Nee, UPDATE moppen SET keur=".$waarde."Ja, dus je update de tabel moppen en niet keur.
moppen= tabel
keur= kolom
toch?
Fanhabbo schreef:Wees duidelijk. Wat wil je dat we doen?Ik vind ding in de code maar vind dat nergens meer terug.
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]../config.php[/COLOR][COLOR= #007700]);[/COLOR] ?>
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]actie[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]del[/COLOR][COLOR= #007700])
{[/COLOR]
[COLOR= #0000BB]$waarde[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]2[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
[COLOR= #0000BB]$waarde[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"UPDATE moppen SET keur="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$waarde[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" WHERE id="[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]ding[/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]
?> dat werkend maken
Klopt.
Fanhabbo schreef:Eerdere citaten tonen
Gamedealer schreef:1. Uitleg klopt niet!Als ik iets wil keuren veranderd er niks aan de tabel keurEerdere citaten tonen
Vriendje schreef:Dus? Wat moeten wij daarmee? Deatils??!
Fanhabbo schreef:dat werkend maken[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]../config.php[/COLOR][COLOR= #007700]);[/COLOR] ?> [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]actie[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]del[/COLOR][COLOR= #007700]) {[/COLOR] [COLOR= #0000BB]$waarde[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]2[/COLOR][COLOR= #007700]; }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR] [COLOR= #0000BB]$waarde[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700]; }[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"UPDATE moppen SET keur="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$waarde[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" WHERE id="[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]ding[/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] ?>
PHp afronden en dan zomaar opnieuw starten. Handig en heel nuttig.
Vriendje schreef:PHp afronden en dan zomaar opnieuw starten. Handig en heel nuttig.dat werkend makenEerdere citaten tonen
Fanhabbo schreef:[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]../config.php[/COLOR][COLOR= #007700]);[/COLOR] [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]actie[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]del[/COLOR][COLOR= #007700]) {[/COLOR] [COLOR= #0000BB]$waarde[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]2[/COLOR][COLOR= #007700]; }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR] [COLOR= #0000BB]$waarde[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700]; }[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"UPDATE moppen SET keur="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$waarde[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" WHERE id="[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]ding[/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] ?>
Maar wat klopt er niet?
toevoeging op 19 februari 2012, 16
28:".mysql_real_escape_string($_GET[ding])."
Klopt dat stukje wel?