I am developing in WordPress plugins and I would like to know.if someone could guide
Me with this issue. I would like to know what's the easier method.of declaring a global variable that I can use. As of now I am not using classes, mostly because i'm not sure how to just yet. I just have a bunch of functions. I am finding myself writing out the same SQL query in multiple functions. How can I store my database results one time in a variable that I can call like this :
Global $results;
Similar to how I call global $wpdb;
When calling global $wpdb, am I actually calling a class or a variable? I'm just a little confused in all of this. Thanks.