Select stat

First rendition of select stat php.