updating user in custom wordpress table
There are 2 main issues in your code: Your $wpdb->get_row($prepare) will return either an object or a null, so you can’t do if(count($users) > 0) because $users is not an array. To fix that, just use if ( $users ). There’s a typo here: SET fnmme=%s — the field name should be fname. So you … Read more