Hi folks
I've been making a plugin for wordpress however it required me to edit the main wordpress files, i have a simple query running and then a check to see if the array key exists, if it does then it needs to perform an update, otherwise write the new data to the custom table.
$currentpub = $wpdb->get_results("SELECT blog_id FROM ".$pre."currentpub", ARRAY_A);
if (array_key_exists('$id', $currentpub))
That is the code i'm using, none of the people I work with can figure out why it's not finding the blog_id in our custom table, we've checked it's getting the right data and it is, $id in this case is the blog id, and we've tried it with and without quotes.