They both mean the same thing but yours is a a direct translation from English to French. The other one is grammatically correct