Been trying to figure this out for hours, and can't figure out solutions from any other questions or resources I've seen. Tried countless other methods but this is the most recent attempt, what am I missing?
session_start();
$email = $_SESSION["email"];
echo $email;
$sqlget = "SELECT clubID FROM users WHERE email = '$email'";
$sqldata = mysqli_query($link, $sqlget) or die('error');
echo $sqldata;
Very new to SQL and PHP, help much appreciated!