FBIRD_NUM_PARAMS
Purpose
Use the fbird_num_params function to retrieve the
number of parameter markers in a prepared query.
Syntax
<num_fields> ::= fbird_num_params(
qry_hndl )
Element
|
Type
|
Description
|
qry_hndl
|
resource
|
A valid query handle
|
<return>
|
mixed
|
Integer on success, False on failure
|
Semantics
The fbird_num_fields function returns the number
of parameter markers (“?”) in the prepared query
specified by the query handle. This is the number of binding
arguments that must be present when calling fbird_execute.
The function returns False upon failure.
Example
The below example code fragment prepares a query
and echoes the number of parameter markers to the browser (“1”
in the example):
$sql = "UPDATE table SET field2 =
?"; $qry = fbird_prepare($sql); echo
fbird_num_params($qry);
See also
fbird_prepare,
fbird_execute,
fbird_param_info
|