user comments

prepare("SELECT * FROM `comments` WHERE tutor_id = ? AND content_id = ?"); $select_comments->execute([$get_id, $tutor_id]); if($select_comments->rowCount() > 0){ while($fetch_comment = $select_comments->fetch(PDO::FETCH_ASSOC)){ $comment_id = $fetch_comment['id']; $select_commentor = $conn->prepare("SELECT * FROM `tutors` WHERE id = ?"); $select_commentor->execute(['comment_id']); $fetch_commentor = $select_commentor->fetch(PDO::FETCH_ASSOC); ?>

no comments added yet!

'; } ?>