prepare("SELECT COUNT(id) FROM posts WHERE user_id = :usr"); $stmt->bindParam(":usr", $current_userID); $stmt->execute(); $res = $stmt->fetch(PDO::FETCH_ASSOC); $times = $res["COUNT(id)"]; if($times == 1){ $times = "once"; }else{ $times = $times." times"; } ?>

You have written so far.

Switch accounts
Log out