I am running into a strange problem where the function below is not working:
*Note that $userid is feeding the correct value
PHP Code:
$sbquery2 = $db->query_read("
SELECT " . TABLE_PREFIX . "user.membergroupids
FROM " . TABLE_PREFIX . "user
WHERE " . TABLE_PREFIX . "user.userid = $userid
");
$sbrow2 = $db->fetch_array($sbquery2);
$sbmemgroups = $sbrow2['membergroupids'];
}
$sbusergroups = explode(",", $sbmemgroups);
I am running this on paidsub_build and paidsub_delete.
Note that the explode works fine in useradmin_update_save where it is fed
PHP Code:
$userdata->fetch_field('membergroupids')
This leads me to believe that I am doing something wrong with the sql however it does not generate any errors.
Thanks for the help