Last active
May 13, 2019 18:12
-
-
Save raphaeldealmeida/4914065e1b6153c11bf9165097da1652 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
$host = ""; | |
$db = 'onboard'; | |
$user = 'inffel'; | |
$pass = ""; | |
$conn = new PDO("sqlsrv:server=$host,1433;Database=$db", $user, $pass); | |
$tsql = "select * from usuarios"; | |
//$getProducts = $conn->exec($tsql); | |
$getProducts = $conn->query($tsql); | |
$usuarios = $getProducts->fetchAll(PDO::FETCH_ASSOC); | |
var_dump($usuarios); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment