Ahoy!
So I’m looking to put together a Like/Dislike feature on my website and am going to have to do it manually because I’ve got some very specific requirements for it and none of the plugins I can find will do what I want. I think I can get what I need by making a snippet in WPCode, but it’s going to need to interact with a table in my database when it’s used. I don’t know a lot about PHP and it’s interactions with MySQL, so I was just wondering if anyone knows of any reason this would be a bad idea security-wise. If I stick with the built-in WordPress functions for handling SQL queries will this be fine? Are there any security risks I should be aware of? I think I still need to name the table I’m sending the queries to in the snippet code, is there somewhere else I should define them so I don’t have to list the actual name?
Thanks for any help!
[ad_2]
Please don’t use wp code. This code snippet plugin is consistently found to have security vulnerabilities, and is not excellent. Use [Code Snippets](https://wordpress.org/plugins/code-snippets/): and we cannot assess the security of whatever functionality you intend to write or have written, though some info can be provided, I would suggest consulting a developer for more in-depth review.
Once you come up with the snippet, you can also just place it directly in your functions.php on the child theme…
What exactly are you adding a like button for??