=$current_user?>
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 =$times?> so far.
Switch accounts
Log out