pdo Registry get pdo stmt pdo- prepare UPDATE ad_desk SET status statu

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$pdo = Registry::get('pdo');
$stmt = $pdo->prepare("UPDATE ad_desk
SET
status = :status,
type = :type,
description = :description,
title = :title,
price = :price,
currency_type = :currency_type,
price_type = :price_type
WHERE
id = :id
");
$success = $stmt->execute(array(
':status' => $status,
':type' => $data['adType'],
':description' => $data['description'],
':title' => $data['title'],
':price' => $data['price'],
':currency_type' => $data['currencyType'],
':price_type' => $data['priceType'],
':id' => $this->id
));