Skip to content

Commit 13f25a5

Browse files
committed
Clarify meaning of $sql_param parameter
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345970 c90b9560-bf6c-de11-be94-00142212c4b1
1 parent 021d76e commit 13f25a5

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

reference/sqlite3/sqlite3stmt/bindparam.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@
2828
<term><parameter>sql_param</parameter></term>
2929
<listitem>
3030
<para>
31-
Either a <type>string</type> or an <type>int</type> identifying the statement variable to which the
32-
parameter should be bound.
31+
Either a <type>string</type> (for named parameters) or an <type>int</type>
32+
(for positional parameters) identifying the statement variable to which the
33+
value should be bound.
34+
If a named parameter does not start with a colon, it is automatically preprended.
35+
Positional parameters start with <literal>1</literal>.
3336
</para>
3437
</listitem>
3538
</varlistentry>

reference/sqlite3/sqlite3stmt/bindvalue.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,11 @@
3232
<term><parameter>sql_param</parameter></term>
3333
<listitem>
3434
<para>
35-
Either a <type>string</type> or an <type>int</type> identifying the statement variable to which the
35+
Either a <type>string</type> (for named parameters) or an <type>int</type>
36+
(for positional parameters) identifying the statement variable to which the
3637
value should be bound.
38+
If a named parameter does not start with a colon, it is automatically preprended.
39+
Positional parameters start with <literal>1</literal>.
3740
</para>
3841
</listitem>
3942
</varlistentry>

0 commit comments

Comments
 (0)