Like and Dislike Buttons on Post with Counter – Only allow one click per post per user session

Untested Pseudo-code examples, which you can expand to resolve the issues: function get_the_user_ip() { if ( ! empty( $_SERVER[‘HTTP_CLIENT_IP’] ) ) { //check ip from share internet $ip = $_SERVER[‘HTTP_CLIENT_IP’]; } elseif ( ! empty( $_SERVER[‘HTTP_X_FORWARDED_FOR’] ) ) { // to check ip is pass from proxy $ip = $_SERVER[‘HTTP_X_FORWARDED_FOR’]; } else { $ip = … Read more

Session is not working properly

Any caching solution will probably break sessions. Try turning off all caching (as well as CloudFlare proxy for your IP address) and see if your code works. If you have a WordPress caching plugin – turn that off too. If your hosting provider does some caching – turn that off too. After turning off all … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)