Skip to content

Instantly share code, notes, and snippets.

@shibacow
Created May 4, 2013 10:51
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save shibacow/5517129 to your computer and use it in GitHub Desktop.
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