Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function select($sql, $array = [], $fetchMode = PDO::FETCH_ASSOC)
- {
- $sth = $this->prepare($sql);
- foreach ($array as $key => $value) {
- $sth->bindValue("$key", $value);
- }
- $sth->execute();
- return $sth->fetchAll($fetchMode);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement