resource db2_prepare    ( resource $connection   , string $statement   [, array $options  ] )

db2_prepare Prepares an SQL statement to be executed


A valid database connection resource variable as returned from db2_connect() or db2_pconnect().


An SQL statement, optionally containing one or more parameter markers..


An associative array containing statement options. You can use this parameter to request a scrollable cursor on database servers that support this functionality.

For a description of valid statement options, see db2_set_option().