WPCode Snippet and Database Access

[ad_1]

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]
3 Comments
  1. 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.

  2. Once you come up with the snippet, you can also just place it directly in your functions.php on the child theme…

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer