I'll answer since nobody else volunteered to (on both threads):
Not all fare classes earn miles on all airlines, some fares don't earn miles at all. This has nothing to do with giving your mileage number before or after the flight. Use wheretocredit.com to find out where your fare class will give you the most miles.