The original MySQL extension is now deprecated. Use PDO instead. It is enabled by default in PHP installations now. PDO is database driver which allows you to easily use diferent databaees without having to relearn a different interface. PDO has a much nicer interface than the old mysql driver, you will end up being more productive, and write safer and cleaner code.

You can find a good PDO Tutorial here.