ovrimos_connect

ovrimos_connect -- Connect to the specified database

Description

int ovrimos_connect ( string host, string db, string user, string password)

Ejemplo 1 . ovrimos_connect( ) Example

 
?php

 
$conn

 
=

 
ovrimos_connect

 
(

 
"server.domain.com"

 
,

 
"8001"

 
,

 
"admin"

 
,

 
"password")

 
;

 
if

 
($conn

 
!=

 
0

 
)

 
{

 
echo

 
"Connection

 
ok

 
!"

 
;

 
$res=ovrimos_exec

 
($conn

 
,

 
"select

 
table_id

 
,

 
table_name

 
from

 
sys.tables")

 
;

 
if

 
($res

 
!=

 
0

 
)

 
{

 
echo

 
"Statement

 
ok

 
!"

 
;

 
ovrimos_result_all

 
($res)

 
;

 
ovrimos_free_result

 
($res)

 
;

 
    }

 
ovrimos_close

 
($conn)

 
;

 
}

 
?



The above example will connect to the database and print out the specified table.