php-doc-en/reference/sqlite3/sqlite3stmt/bindparam.xml
Torben Wilson af4410a7e1 Normalized the sgml-default-dtd-file local-variable line for those
still using this, after discussion on the phpdoc list.
From now on, manual.ced will need to be found at ~/.phpdoc/manual.ced.



git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@288721 c90b9560-bf6c-de11-be94-00142212c4b1
2009-09-25 07:04:39 +00:00

118 lines
3.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="sqlite3stmt.bindparam" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>SQLite3Stmt::bindParam</refname>
<refpurpose>Binds a parameter to a statement variable</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<modifier>public</modifier> <type>bool</type><methodname>SQLite3Stmt::bindParam</methodname>
<methodparam><type>string</type><parameter>sql_param</parameter></methodparam>
<methodparam><type>mixed</type><parameter role="reference">param</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>type</parameter></methodparam>
</methodsynopsis>
<para>
Binds a parameter to a statement variable.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>sql_param</parameter></term>
<listitem>
<para>
An <type>string</type> identifying the statement variable to which the
parameter should be bound.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>param</parameter></term>
<listitem>
<para>
The parameter to bind to a statement variable.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>type</parameter></term>
<listitem>
<para>
The data type of the parameter to bind.
<itemizedlist>
<listitem>
<para>
<literal>SQLITE3_INTEGER</literal>: The value is a signed integer,
stored in 1, 2, 3, 4, 6, or 8 bytes depending on the magnitude of
the value.
</para>
</listitem>
<listitem>
<para>
<literal>SQLITE3_FLOAT</literal>: The value is a floating point
value, stored as an 8-byte IEEE floating point number.
</para>
</listitem>
<listitem>
<para>
<literal>SQLITE3_TEXT</literal>: The value is a text string, stored
using the database encoding (UTF-8, UTF-16BE or UTF-16-LE).
</para>
</listitem>
<listitem>
<para>
<literal>SQLITE3_BLOB</literal>: The value is a blob of data, stored
exactly as it was input.
</para>
</listitem>
<listitem>
<para>
<literal>SQLITE3_NULL</literal>: The value is a NULL value.
</para>
</listitem>
</itemizedlist>
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Returns &true; if the parameter is bound to the statement variable, &false;
on failure.
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->