Nieuw lid |
|
Dit is wat ik tot nog toe heb
$sql = 'SELECT * FROM users WHERE username = "'.$_POST['username'].'"';
$result = mysql_query($sql);
while ($info = mysql_fetch_array($result)) {
$id = $info['id'];
$password = $info['password'];
$code = sha1($info['code']);
$activate == $info['activatie']
}
if (($_POST['password'] == $password) AND ($activate == 1)){
if (isset($_POST['rememberme'])) {
setcookie("id", $id, time()+(3600 * 24 * 30), "/");
setcookie("code", $code, time()+(3600 * 24 * 30), "/");
} else {
setcookie("id", $id, "/");
setcookie("code", $code; "/");
}
$sql = 'SELECT * FROM users WHERE username = "'.$_POST['username'].'"'; $id = $info['id']; $password = $info['password']; $code = sha1($info['code']); $activate == $info['activatie'] } if (($_POST['password'] == $password) AND ($activate == 1)){ if (isset($_POST['rememberme'])) { } else { }
|