Created
November 8, 2014 17:02
-
-
Save Bolinha1/7e5a8cae5a0a0fb9d5fb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include __DIR__.'/../Config/Connection.php'; | |
function getAll() | |
{ | |
$pdo = connection(); | |
$stmt = $pdo->prepare('SELECT * FROM tb_test'); | |
$stmt->execute(); | |
return $stmt->fetchAll(PDO::FETCH_OBJ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment