Created
May 4, 2013 10:51
-
-
Save shibacow/5517129 to your computer and use it in GitHub Desktop.
odbc connet sample program
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 | |
function odbc_test(){ | |
$DSN='IMPALA-SERVER'; | |
$USER=''; | |
$PASS=''; | |
$con=odbc_connect($DSN,$USER,$PASS); | |
if($con){ | |
$sql='select count(*) from sample_07'; | |
$rs = odbc_exec($con,$sql); | |
while($row = odbc_fetch_array($rs)){ | |
var_dump($row); | |
} | |
odbc_free_result($rs); | |
odbc_close($con); | |
} | |
} | |
odbc_test(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment