Project created successfully with ID: ' . $project_id . '
'; } elseif (isset($_POST['apply_to_group'])) { $project_id = sanitize_text_field($_POST['project_id']); $group_id = sanitize_text_field($_POST['group_id']); $wpdb->update( $table_name, array('group_id' => $group_id), array('project_id' => $project_id) ); echo 'Project applied to group successfully.
'; } } ?>