$wpdb->get_results() into foreach() returns always the word “Array” on top of the list . How to get rid of?
I’m not sure why you are getting errors but I can show you haw to defensively find and react to them. This is your code $rows = $wpdb->get_results($wpdb->prepare(“SELECT `rul_value` FROM ” . _ROLES_ . ” WHERE `rul_type` = %s AND `rul_value` LIKE %s”, ‘role’, ‘%intera%’)); foreach($rows as $row) { $singleParts .= $row->rul_value . “\n”; } … Read more