So I’m not fully sure what my issue is, I’m trying to pull information from a users account off of my mysql like a username, yet I get an undefined variable for “row”. I’ve done this before and for some reason can’t get it to work.
if(isset($_GET[‘userId’]) && $_GET[‘userId’] != ‘’){
$query = "SELECT * FROM login WHERE id = '".$_SESSION['userid']."'";
$row= $con->query($query);
}