包装器或数据库抽象层

Perhaps a strange question, but what exactly is the difference/similarity between a Wrapper and a Database Abstraction Layer (DAL) for MySQLi or PDO? I can't find much information about them on the internet. I was looking for a script that includes the query's, prepared statements, eg., should I use a wrapper or DAL for that? And when should I use the other one?

Thanks!

Wrapper is something you write around another library for your purposes.

Take a look at this question:

Good PHP ORM Library?

There are lot of alternatives, depending on what framework you are using, most of them have their own wrappers for this purpose.

Doctrine is pretty popular.

You can also use Zend Framework and it's data access for that purpose as well.

Pear has stable data access wrappers.