Generate PHP data entry forms from MySQL tables