Username: epiz_29193525
Bug
So I made an PHP page with like/dislike function. It changes the icon color when interaction(Font awesome), and using heart icon , but the older version of the icon (thumbs-up) always appear (this was the older version’s icon)
Code snippet (if needed)
<a class="card-link <?php IF ($isPostLiked) { echo "dislikePost"; } else { echo "likePost";}?>" id="like_<?php echo $post['post_id']; ?>" data-post-id="<?php echo $post['post_id']; ?>">
<i style="cursor: pointer; <?php IF ($isPostLiked) { echo "color: red;"; } else { echo "color: black;";}?>" title="<?php IF ($isPostLiked) { echo "Liked"; } else { echo "Like";}?>" id="likeIcon_<?php echo $post['post_id']; ?>" class="<?php IF ($isPostLiked) { echo "fas fa-heart"; } else { echo "fas fa-heart";}?>"></i></a>
I tried…
I tried to clear device/browser cache, and tried on another device, but nothing(So its server cache). Also tried in Cpanel, but there isn’t a function to clear caches or temp files. If anyone can help, I will be very happy…