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

db2_prepare Prepares an SQL statement to be executed

connection

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

statement

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

options

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().