Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
bool sasql_stmt_bind_param_ex( sasql_stmt $stmt, int $param_number, mixed &$var, string $type [, bool $is_null [, int $direction ] ] )
将一个 PHP 变量绑定到语句参数。
$stmt 由 sasql_prepare 函数返回的预准备语句资源。
$param_number 参数数字。它应该是 0 和 (sasql_stmt_param_count($stmt) - 1) 之间的一个数字。
$var PHP 变量。仅允许对 PHP 变量的引用。
$type 变量的类型。此类型可以是以下各项之一:s(对于字符串)、i(对于整数)、d(对于双精度型)、b(对于 blob)。
$is_null 不论变量值是否为 NULL。
$direction 可以是 SASQL_D_INPUT、SASQL_D_OUTPUT 或 SASQL_INPUT_OUTPUT。
如果绑定成功则为 TRUE,否则为 FALSE。