PHP: odbc_prepare - Manual in Deutsh
PHP: odbc_prepare - Manual in French
PHP: odbc_prepare - Manual in Polish

You Are At PHP: odbc_prepare - Manual Area


recent searches:
include functions , variable functions , post functions...




If you are new to PHP or just need to refresh your skills, this is the place to start. This series of tutorials will give you the basic knowledge you will need to create a simple PHP website.

PHP is a reflective programming language originally designed for producing dynamic web pages.[1] PHP is used mainly in server-side scripting, but can be used from a command line interface or in standalone graphical applications. Textual User Interfaces can also be created using ncurses.

PHP Manual
PrevNext

odbc_prepare

(PHP 3 >= 3.0.6, PHP 4, PHP 5)

odbc_prepare -- Prepares a statement for execution

Description

resource odbc_prepare ( resource connection_id, string query_string )

Returns FALSE on error.

Returns an ODBC result identifier if the SQL command was prepared successfully. The result identifier can be used later to execute the statement with odbc_execute().

Some databases (such as IBM DB2, MS SQL Server, and Oracle) support stored procedures that accept parameters of type IN, INOUT, and OUT as defined by the ODBC specification. However, the Unified ODBC driver currently only supports parameters of type IN to stored procedures.

In the following code, $res will only be valid if all three parameters to myproc are IN parameters:

<?php
$a
= 1;
$b = 2;
$c = 3;
$stmt = odbc_prepare($conn, 'CALL myproc(?,?,?)');
$res = odbc_execute($stmt, array($a, $b, $c));
?>
If you need to call a stored procedure using INOUT or OUT parameters, the recommended workaround is to use a native extension for your database (for example, mssql for MS SQL Server, or oci8 for Oracle).

wizy do rosji gdańsk, wizy do rosji, powiększanie ust, hurtownia odzieży, końcówki kolekcji, Pensjonaty w Zakopanem, tanie perfumy
Kino domowe Cypr Wyposażenie mieszkania Wrocław identyfikatory

Another Useful functions:


function.odbc-tables | function.odbc-tableprivileges | function.odbc-statistics | function.odbc-specialcolumns | function.odbc-setoption | function.odbc-rollback | function.odbc-result | function.odbc-result-all | function.odbc-procedures | function.odbc-procedurecolumns | function.odbc-primarykeys | function.odbc-prepare | function.odbc-pconnect | function.odbc-num-rows | function.odbc-num-fields | function.odbc-next-result | function.odbc-longreadlen | function.odbc-gettypeinfo | function.odbc-free-result | function.odbc-foreignkeys | function.odbc-field-type | function.odbc-field-scale | function.odbc-field-precision | function.odbc-field-num | function.odbc-field-name | function.odbc-field-len | function.odbc-fetch-row | function.odbc-fetch-object | function.odbc-fetch-into | function.odbc-fetch-array | function.odbc-execute | function.odbc-exec | function.odbc-errormsg | function.odbc-error | function.odbc-do | function.odbc-data-source | function.odbc-cursor | function.odbc-connect | function.odbc-commit | function.odbc-columns | function.odbc-columnprivileges | function.odbc-close | function.odbc-close-all | function.odbc-binmode | function.odbc-autocommit |


PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. If you are new to PHP and want to get some idea of how it works, try the introductory tutorial. After that, check out the online manual, and the example archive sites and some of the other resources available in the links section.