Dai un'occhiata qui

http://it.php.net/manual/it/security.database.php