Advertisement
proxteam

home

Oct 11th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. <?php
  2.  
  3. namespace App\interact;
  4.  
  5. use Core\Controller;
  6. use PDO;
  7.  
  8. class home extends Controller{
  9.  
  10. public function __construct() {
  11.  
  12. $this->title();
  13. $this->tes();
  14. }
  15.  
  16. protected function title() {
  17.  
  18. $query = Controller::query("select * from config");
  19. $result = $query->fetchAll();
  20. $query->closeCursor();
  21.  
  22. print_r($result);
  23.  
  24. }
  25. protected function tes() {
  26.  
  27. $query = Controller::query("select * from user");
  28. $result = $query->fetchAll(PDO::FETCH_ASSOC);
  29. $query->closeCursor();
  30.  
  31. print_r($result);
  32.  
  33. }
  34.  
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement