If the dogs worms are flat white worms in your dogs poop then they have Tapeworms.
If your dog has Tapeworms you need to get the dog some worm medicine because the Tapeworms that live inside the dogs intestines can kill the dog if the dog doesn't get worm medicine.