#native_company# #native_desc#
#native_cta#

ODBC connection

By Himadrish Laha
on November 28, 2003

Version: 1.4

Type: Function

Category: Databases

License: GNU General Public License

Description: Used this to make a connection through ODBC, you can connect oracle, sql server, access, mysql using php, vb etc.

<?php
// This function created for making ODBC connection with databses
//	Created on 30th DEcember,2002 by Himadrish Laha [email protected]
$connectionstring = odbc_connect("babu", "tiscocmon", "tiscocmon"); 

$Query = "select * from cybertiming"; 
$queryexe = odbc_do($connectionstring, $Query); 


    while(odbc_fetch_row($queryexe)) 
    { 
     
    $cid = odbc_result($queryexe, "cyberid");
    $upno = odbc_result($queryexe, "userpno");
    echo "  $cid    $upno   n";
    } 

odbc_close($connectionstring); 

exit();
?>