...
Before using this API, you must call pjs.prepare(), so that you can pass in the handle from that call.
The API can also be called in the form of a method attached to a statement object as follows: stmt.bindParameters().
Parameters
- The handle created by pjs.prepare(). This parameter is omitted, if the API is called as a statement method.
- An array of parameters for each SQL parameter marker. Each element in the array must be another array, where the first element is the value of the parameter and the second is the parameter type. For example:
[[paramA, SQL_PARAM_INPUT], [paramB, SQL_PARAM_INPUT]]
...