tbl teacher
lrn
fname
lname
email
image
schedule
tbl user
lrn
fname
lname
email
image
account-type
$id=$_SESSION['id'];
$get_record_sched = mysqli_query ($db, "SELECT schedule FROM teacher INNER JOIN users ON teacher.lrn = users.lrn WHERE teacher.lrn = '$id' ");
I want to echo the exact schedule based on the id of the logged in account. But with this, query, there's no output...