Lines Matching refs:conn
16 $conn = odbc_connect($dsn, $user, $pass);
17 $result = @odbc_exec($conn, "SELECT @@Version");
32 function set_context_info($conn, $string) {
34 return odbc_exec($conn, "SET CONTEXT_INFO 0x$hexstring");
37 function fetch_context_info($conn) {
38 $stmt = odbc_exec($conn, "SELECT CONTEXT_INFO() AS CONTEXT_INFO");
52 $conn = odbc_pconnect($dsn, $user, $pass);
53 set_context_info($conn, "PHP odbc_pconnect test");
54 var_dump(fetch_context_info($conn));
57 $conn = odbc_pconnect($dsn, $user, $pass);
58 var_dump(fetch_context_info($conn));
61 odbc_close($conn);
62 $conn = odbc_pconnect($dsn, $user, $pass);
63 var_dump(fetch_context_info($conn));