Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $host= "192.168.0.150";
- $port="3050";
- $database="D:/C2 Sistemas/Sigef/Banco/SIGEF.FDB";
- $stringConexao = $host.'/'.$port.':'.$database;
- $user = "SYSDBA";
- $pass = "masterkey";
- $con = new PDO('firebird:dbname='.$stringConexao, $user, $pass)or die('Não Conectou!');
- echo 'Conectou!';
- $sql = "SELECT CLI_MATRICULA, CLI_NOME FROM CLIENTES";
- $query = $con->prepare($sql);
- $query->execute();
- while ($linha=$query->fetch()){
- echo ($linha[0]."\x09".$linha[1]."\x0a");
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement