Hash user emails in database?

Hashing is a one-way function, meaning you can’t get back an original string from a hash value. You could use the PHP function mcrypt_encrypt to “encrypt” the email address and mcrypt_decrypt to convert it back. If you went that route, you could hook into password_reset to decode the email address before the password reset is … Read more

Error establishing a database connection for some files

This is most likely a file permission issue on the server. If the file is visible on the file system but not rendering properly in the browser it typically means: 1) The web server (apache, iis, nginx) can’t see the file because it’s assigned to the wrong owner:group or the permissions are set too restrictively … Read more

AJAX Not Working With WordPress Database properly

I think your problem is here: $like_the_post = intval( $_POST[‘like_the_post’] ); You’re relying on the user’s browser’s POST input to determine whether to increment or decrement the count. When a user quickly clicks the button, the AJAX call hasn’t yet completed and changed the form input from true to false (or whatever’s vice-versa). Additionally, this … Read more