$(".artila").click(function(){
  $(this).toggleClass("deneme");
    var no = $(this).attr("id");
    $.ajax({
      type: "POST",
      url: "index.php",
      data: {"id":no},
      success: function(){}
    });
    $(this).text( htmlString );
});
	$no = $_POST["id"];
			if (isset($no)) {
				$db->query("UPDATE post SET arti = arti + 1 WHERE post_no='$no");
			}
			if (!$no) {
				echo "naptın ";
			}
böyle bi şey hazırladım ajaxta ilk başta idyi alıyo ama index.php ye yollayamıyom
 
  

 
                    
 
                    