Replaced all mysql_ with mysqli_ functions.