maxdb_stmt_param_count
maxdb_stmt::param_count
Returns the number of parameter for the given statement
&reftitle.description;
&style.procedural;
intmaxdb_stmt_param_count
resourcestmt
&style.oop;
intmaxdb_stmt->param_count
maxdb_stmt_param_count returns the number of parameter
markers present in the prepared statement.
&reftitle.returnvalues;
returns an integer representing the number of parameters.
&reftitle.examples;
&style.oop;
prepare("SELECT name FROM hotel.city WHERE name=? OR state=?")) {
$marker = $stmt->param_count;
printf("Statement has %d markers.\n", $marker);
/* close statement */
$stmt->close();
}
/* close connection */
$maxdb->close();
?>
]]>
&style.procedural;
]]>
&example.outputs.similar;
&reftitle.seealso;
maxdb_prepare