Htaccess    html   Php    javascript   Asp   css    maths  Past Questions  Practice Tests Online

ovrimos connect function syntax tag tutorial 2013





Alert! Connect with 10,000 Chating Online. Join Now

Php ovrimos connect () function

Write your php code

 
<?php ?>

Php Result


Your code below



(PHP 4 >= 4.0.3, PHP 5)

ovrimos_connect -- Connect to the specified database

Syntax

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

ovrimos_connect() is used to connect to the specified database.

ovrimos_connect() returns a connection id (greater than 0) or 0 for failure. The meaning of host and db are those used everywhere in Ovrimos APIs. host is a host name or IP address and db is either a database name, or a string containing the port number.

Example 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.

Php ovrimos connect Function syntax tag

ovrimos connect php code on this is provided for your study purpose, it will guide you to know how create and design a website using php. use it to practice and train your self online



Php ovrimos connect syntax tutorial

php tutorial guide and code design are for easy learning and programming. The code practice section provided at the top is for practising of this syntax. Use the code section up to practice your php programming online. Learning php is very easy, all you need is to use the examples on this site and practice them to perfect your skills.


Function index

Variables

Expressions

Operators

Control-Structures

Cookies

Array

Date & Time

Directory function

File

Image

Operators

Form data handling

Mathematics operators

Mail

Php Mysql

Network Functions

Strings

php tutorial guides,functions, classes, code examples and tags for creating simple dynamic site to mysql database driven sites
 
 
Htaccess    html   Php    javascript   Asp   css    maths  Past Questions  Practice Tests Online