Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace App\interact;
- use Core\Controller;
- use PDO;
- class home extends Controller{
- public function __construct() {
- $this->title();
- $this->tes();
- }
- protected function title() {
- $query = Controller::query("select * from config");
- $result = $query->fetchAll();
- $query->closeCursor();
- print_r($result);
- }
- protected function tes() {
- $query = Controller::query("select * from user");
- $result = $query->fetchAll(PDO::FETCH_ASSOC);
- $query->closeCursor();
- print_r($result);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement