I have a button that adds the +1 value to the database and shows the total of likes the article already has.
<a class='btn' href=portal/fav.php?id=".$produto['id']."> <span class='badge bg-red'>".$produto['fav'] . "</span> <i class='fa fa-heart-o'></i> Likes </a>
But this way the page will update. How do I, when I click the button, does it update without updating the page?
The page in php that does the update is
fav.php