Just another post confirming the above. P226 mags work in P228s, but P228 mags are too short for P226s. Don't have a P229 to confirm interchangeability.
I use 226 mags in my 229. They work find although they hang out of the grip a little. There are new magazine base plates available that will make up that space. Check out X-grip magazine extensions.