Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1. class MyRepository
  2. {
  3.     private $connection;
  4.  
  5.     public function __construct($connection)
  6.     {
  7.         $this->connection = $connection;
  8.     }
  9.  
  10.     public function textResultQuery($query)
  11.     {
  12.         queryResult = mysqli_query($this->connection, $query);
  13.         $queryArray = mysqli_fetch_assoc($queryResult);
  14.         return implode($queryArray);
  15.     }
  16.     ...
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement