prepare("SELECT * FROM comments WHERE post_id = :pid ORDER BY date ASC"); $stmt->bindParam(":pid", $_GET["post"]); $stmt->execute(); $row = $stmt->fetchAll(); if(isset($_GET["a"])){ conn(); $stmt = $GLOBALS['conn']->prepare("SELECT * FROM alerts WHERE id = :id"); $stmt->bindParam(":id", $_GET["a"]); $stmt->execute(); $res = $stmt->fetch(PDO::FETCH_OBJ); if($res->mentionee == $current_user){ alertDelete($_GET["a"]); } } ?>
(Replying to $name)
"; }else{ $reply = $repNotif = ""; } ?>delete
"; }else{ $repDel = "report"; } if($_GET["a"]==$comment['id']){ $a = "current"; echo ""; }else{ $a = ""; } echo "".$uname."".$teacher." ".makeDate($comment['date'])."