<HTML ><HEAD ><TITLE >Ovrimos SQL functions</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="PHP Manual" HREF="index.html"><LINK REL="UP" TITLE="Function Reference" HREF="funcref.html"><LINK REL="PREVIOUS" TITLE="Ora_Rollback" HREF="function.ora-rollback.html"><LINK REL="NEXT" TITLE="ovrimos_close" HREF="function.ovrimos-close.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=ISO-8859-1"></HEAD ><BODY CLASS="reference" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >PHP Manual</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.ora-rollback.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.ovrimos-close.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="reference" ><A NAME="ref.ovrimos" ></A ><DIV CLASS="TITLEPAGE" ><H1 CLASS="title" >LXXIV. Ovrimos SQL functions</H1 ><DIV CLASS="PARTINTRO" ><A NAME="AEN69503" ></A ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="ovrimos.intro" ></A >Introduction</H1 ><P > Ovrimos SQL Server, is a client/server, transactional RDBMS combined with Web capabilities and fast transactions. </P ><DIV CLASS="note" ><BLOCKQUOTE CLASS="note" ><P ><B >Note: </B >This extension is not available on Windows platforms.</P ></BLOCKQUOTE ></DIV ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="ovrimos.requirements" ></A >Requirements</H1 ><P > Ovrimos SQL Server is available at <A HREF="http://www.ovrimos.com/" TARGET="_top" >http://www.ovrimos.com/</A >. You'll need to install the sqlcli library available in the Ovrimos SQL Server distribution. </P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="ovrimos.installation" ></A >Installation</H1 ><P > To enable Ovrimos support in PHP just compile PHP with the <TT CLASS="option" >--with-ovrimos[=DIR]</TT > parameter to your configure line. DIR is the Ovrimos' libsqlcli install directory. </P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="ovrimos.configuration" ></A >Runtime Configuration</H1 ><P >This extension has no configuration directives defined in <TT CLASS="filename" >php.ini</TT >.</P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="ovrimos.resources" ></A >Resource Types</H1 ><P > </P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="ovrimos.examples" ></A >Examples</H1 ><P > <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" CLASS="EXAMPLE" ><TR ><TD ><DIV CLASS="example" ><A NAME="AEN69527" ></A ><P ><B >Example 1. Connect to Ovrimos SQL Server and select from a system table </B ></P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" CELLPADDING="5" ><TR ><TD ><PRE CLASS="php" ><?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); } ?></PRE ></TD ></TR ></TABLE ></DIV ></TD ></TR ></TABLE > This will just connect to an Ovrimos SQL server. </P ></DIV ></DIV ><DIV CLASS="TOC" ><DL ><DT ><B >Table of Contents</B ></DT ><DT ><A HREF="function.ovrimos-close.html" >ovrimos_close</A > -- Closes the connection to ovrimos</DT ><DT ><A HREF="function.ovrimos-commit.html" >ovrimos_commit</A > -- Commits the transaction</DT ><DT ><A HREF="function.ovrimos-connect.html" >ovrimos_connect</A > -- Connect to the specified database</DT ><DT ><A HREF="function.ovrimos-cursor.html" >ovrimos_cursor</A > -- Returns the name of the cursor</DT ><DT ><A HREF="function.ovrimos-exec.html" >ovrimos_exec</A > -- Executes an SQL statement</DT ><DT ><A HREF="function.ovrimos-execute.html" >ovrimos_execute</A > -- Executes a prepared SQL statement</DT ><DT ><A HREF="function.ovrimos-fetch-into.html" >ovrimos_fetch_into</A > -- Fetches a row from the result set</DT ><DT ><A HREF="function.ovrimos-fetch-row.html" >ovrimos_fetch_row</A > -- Fetches a row from the result set</DT ><DT ><A HREF="function.ovrimos-field-len.html" >ovrimos_field_len</A > -- Returns the length of the output column</DT ><DT ><A HREF="function.ovrimos-field-name.html" >ovrimos_field_name</A > -- Returns the output column name</DT ><DT ><A HREF="function.ovrimos-field-num.html" >ovrimos_field_num</A > -- Returns the (1-based) index of the output column </DT ><DT ><A HREF="function.ovrimos-field-type.html" >ovrimos_field_type</A > -- Returns the (numeric) type of the output column </DT ><DT ><A HREF="function.ovrimos-free-result.html" >ovrimos_free_result</A > -- Frees the specified result_id</DT ><DT ><A HREF="function.ovrimos-longreadlen.html" >ovrimos_longreadlen</A > -- Specifies how many bytes are to be retrieved from long datatypes </DT ><DT ><A HREF="function.ovrimos-num-fields.html" >ovrimos_num_fields</A > -- Returns the number of columns</DT ><DT ><A HREF="function.ovrimos-num-rows.html" >ovrimos_num_rows</A > -- Returns the number of rows affected by update operations </DT ><DT ><A HREF="function.ovrimos-prepare.html" >ovrimos_prepare</A > -- Prepares an SQL statement</DT ><DT ><A HREF="function.ovrimos-result-all.html" >ovrimos_result_all</A > -- Prints the whole result set as an HTML table </DT ><DT ><A HREF="function.ovrimos-result.html" >ovrimos_result</A > -- Retrieves the output column</DT ><DT ><A HREF="function.ovrimos-rollback.html" >ovrimos_rollback</A > -- Rolls back the transaction</DT ></DL ></DIV ></DIV ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.ora-rollback.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.ovrimos-close.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Ora_Rollback</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="funcref.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >ovrimos_close</TD ></TR ></TABLE ></DIV ></BODY ></HTML >