Modify a PHP login script by adding PHP PDO

Avg Bid (USD)
Project Budget (USD)
$30 - $50

Project Description:
We need help for a small project from PHP expert who can handle PHP POD very well. If it goes well, there will be more projects coming.

We got a PHP login script that works very well but we need to add some security features to make it more secure. We want to the script that has following modification:

1. Use PHP PDO to connect mysql database. Please see the example:

try {
$db = new PDO("mysql:host=".DBHOST.";dbname=".DBNAME, DBUSER, DBPASS);
$db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
}catch (Exception $e){
die('Cannot connect to mySQL server.');

2. Use PHP PDO to interact with mysql database. See the example:

function create_account(){
//Create new account
$sql = 'INSERT into users (username, password, email) VALUES (:username, :password, :email)';
$statement = $this->db->prepare($sql);
$statement->bindParam(':username', $this->user, PDO::PARAM_STR);
$statement->bindParam(':password', $this->pass, PDO::PARAM_STR);
$statement->bindParam(':email', $this->email, PDO::PARAM_STR);
3. After modification, the scrip will be working smoothly.

Skills required:
Additional Files: index.php constants.php forgotpass.php userinfo.php useredit.php register.php README.txt process.php main.php admin.php view_active.php session.php mailer.php form.php adminprocess.php
About the employer:
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.

Hire agarassino
$ 40
in 3 days
$ 35
in 1 days
$ 40
in 2 days
$ 45
in 1 days
$ 30
in 3 days
Hire Djokoui
$ 30
in 1 days