db2_bind_param

PECL ibm_db2 >= 1.0.0
db2_bind_param - Binds a PHP variable to an SQL statement parameter
Manual
Code Examples

Example #1 Binding PHP variables to a prepared statement

Result: Pook, cat, 3.2 Rickety Ride, goat, 9.7 Peaches, dog, 12.3
PHP Version:

Example #2 Calling stored procedures with IN and OUT parameters

Result: Values of bound parameters _before_ CALL: 1: Peaches 2: Rickety Ride 3: 0 Values of bound parameters _after_ CALL: 1: Peaches 2: TRUE 3: 22 Results: Peaches, dog, 12.3 Pook, cat, 3.2 Rickety Ride, goat, 9.7
PHP Version:

Example #3 Inserting a binary large object (BLOB) directly from a file

PHP Version: