Usually the wax ring that seals the toilet to the flange on the floor has worn away. The toilet needs to be pulled, a new seal installed and the toilet reset.