<?php
$query = mysqli_query($con, "SELECT * FROM user WHERE email='$email'");
if($GET['$email1'] == $email) {
$result = mysqli_fetch_assoc($query);
$_SESSION['id_user'] = $result['id_user'];
$_SESSION['username'] = $result['username'];
$_SESSION['email'] = $result['email'];
}
?>
Hi @JPeyroteo!
You mean $_GET
instead of $GET
on line 3
I assume this is only a piece of your code. The behaviour of the entire script depends on the entire code.
Also, what exactly do you intend to do?
1 Like