What I'm trying to do is get the information from the $a column from the users and then go to the gear column and search the Name column for whatever was is $a.
but I getPHP Code:
$sql3 = "SELECT * FROM gear RIGHT JOIN users gear.Name=users.$a WHERE Username ='$_SESSION[Username]'" or die(mysqli_error($con));
$cross = mysqli_query($con, $sql3);
$gear = mysqli_fetch_assoc($cross);
Code:Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, boolean