Ejemplo n.º 1
0
 public function update($id, $data, $table)
 {
     $keys = array_keys($data);
     $sql = QB::updateQuery($table, $keys, $id);
     $data['id'] = $id;
     $q = $this->conn->prepare($sql);
     $sth = $q->execute($data);
     if ($sth) {
         return true;
     } else {
         return false;
     }
 }