PHP gevorderde |
|
<?php
$select_lid = "SELECT * FROM rpg_members WHERE user='" . $_POST[user] . "' AND geactiveerd='1'";
$query_lid = mysql_query($select_lid);
$bestaat_lid = mysql_num_rows($query_lid);
$list_lid = mysql_fetch_object($query_lid);
setcookie("gebruikersnaam", $list_lid->user, time() +604800, "/");
setcookie("memberid", $list_lid->id, time() +604800, "/");
setcookie("hash", $list_lid->pwd, time() +604800, "/");
?>
<?php $select_lid = "SELECT * FROM rpg_members WHERE user='" . $_POST[user] . "' AND geactiveerd='1'"; setcookie("gebruikersnaam", $list_lid->user, time() +604800, "/"); ?>
Dit is al iets of wat meer code
Citaat: Warning: Cannot modify header information - headers already sent by (output started at /usr/home/mette/domains/mette.zoef-design.be/public_html/urpg/Registreer/login.php:20) in /usr/home/mette/domains/mette.zoef-design.be/public_html/urpg/Registreer/login.php on line 101
Warning: Cannot modify header information - headers already sent by (output started at /usr/home/mette/domains/mette.zoef-design.be/public_html/urpg/Registreer/login.php:20) in /usr/home/mette/domains/mette.zoef-design.be/public_html/urpg/Registreer/login.php on line 102
Warning: Cannot modify header information - headers already sent by (output started at /usr/home/mette/domains/mette.zoef-design.be/public_html/urpg/Registreer/login.php:20) in /usr/home/mette/domains/mette.zoef-design.be/public_html/urpg/Registreer/login.php on line 103
ik krijg deze fouten
Dit zijn de setcookies |