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