<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML ><HEAD ><TITLE >Ovrimos SQL Functions</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="Manual PHP" HREF="index.html"><LINK REL="UP" TITLE="Documentaþia funcþiilor" 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-2"></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" >Manual PHP</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.ora-rollback.html" ACCESSKEY="P" >Înapoi</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" >Înainte</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="reference" ><A NAME="ref.ovrimos" ></A ><DIV CLASS="TITLEPAGE" ><H1 CLASS="title" >LXXX. Ovrimos SQL Functions</H1 ><DIV CLASS="PARTINTRO" ><A NAME="AEN86228" ></A ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="ovrimos.intro" >Introducere</A ></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 >Notã: </B >This extension is not available on Windows platforms.</P ></BLOCKQUOTE ></DIV ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="ovrimos.requirements" >Necesitãþi</A ></H1 ><P > 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" >Instalare</A ></H1 ><P > To enable Ovrimos support in PHP just compile PHP with the <VAR CLASS="option" >--with-ovrimos[=DIR]</VAR > parameter to your configure line. DIR is the Ovrimos' libsqlcli install directory. </P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="ovrimos.configuration" >Configurare la rulare</A ></H1 ><P >Aceastã extensie nu defineºte directive de configurare.</P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="ovrimos.resources" >Tipuri de resurse</A ></H1 ><P > </P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="ovrimos.examples" >Exemple</A ></H1 ><P > <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" CLASS="EXAMPLE" ><TR ><TD ><DIV CLASS="example" ><A NAME="AEN86250" ></A ><P ><B >Exemplu 1. Connect to Ovrimos SQL Server and select from a system table </B ></P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" CELLPADDING="5" ><TR ><TD ><code><font color="#000000"> <font color="#0000BB"><?php<br />$conn </font><font color="#007700">= </font><font color="#0000BB">ovrimos_connect</font><font color="#007700">(</font><font color="#DD0000">"server.domain.com"</font><font color="#007700">, </font><font color="#DD0000">"8001"</font><font color="#007700">, </font><font color="#DD0000">"admin"</font><font color="#007700">, </font><font color="#DD0000">"password"</font><font color="#007700">);<br />if (</font><font color="#0000BB">$conn </font><font color="#007700">!= </font><font color="#0000BB">0</font><font color="#007700">) {<br /> echo </font><font color="#DD0000">"Connection ok!"</font><font color="#007700">;<br /> </font><font color="#0000BB">$res </font><font color="#007700">= </font><font color="#0000BB">ovrimos_exec</font><font color="#007700">(</font><font color="#0000BB">$conn</font><font color="#007700">, </font><font color="#DD0000">"select table_id, table_name from sys.tables"</font><font color="#007700">);<br /> if (</font><font color="#0000BB">$res </font><font color="#007700">!= </font><font color="#0000BB">0</font><font color="#007700">) {<br /> echo </font><font color="#DD0000">"Statement ok!"</font><font color="#007700">;<br /> </font><font color="#0000BB">ovrimos_result_all</font><font color="#007700">(</font><font color="#0000BB">$res</font><font color="#007700">);<br /> </font><font color="#0000BB">ovrimos_free_result</font><font color="#007700">(</font><font color="#0000BB">$res</font><font color="#007700">);<br /> }<br /> </font><font color="#0000BB">ovrimos_close</font><font color="#007700">(</font><font color="#0000BB">$conn</font><font color="#007700">);<br />}<br /></font><font color="#0000BB">?></font> </font> </code></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 >Cuprins</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" >Înapoi</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Acasã</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.ovrimos-close.html" ACCESSKEY="N" >Înainte</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" >Sus</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >ovrimos_close</TD ></TR ></TABLE ></DIV ></BODY ></HTML >