First Attempt At AES Encryption Fail

I found out the tutorial on AES encryption in PHP I was using was
written in Cake PHP so it is basically unusable to us. I found another,
simpler implementation I will attempt to create.