Converted bid.php to PDO