Instantly share code, notes, and snippets.

Embed
What would you like to do?
odbc connet sample program
<?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