maxdb_preparemaxdb->prepare(PECL maxdb:1.0-7.6.00.38) maxdb->prepare — Prepare a SQL statement for execution ОписаниеProcedure style:
resource maxdb_prepare
( resource $link
, string $query
)
Object oriented style (method) stmt
resource prepare
( string $query
)
maxdb_prepare() prepares the SQL query pointed to by the null-terminated string query, and returns a statement handle to be used for further operations on the statement. The query must consist of a single SQL statement.
The parameter query can include one or more parameter markers in the SQL statement by embedding question mark (?) characters at the appropriate positions.
The parameter markers must be bound to application variables using maxdb_stmt_bind_param() and/or maxdb_stmt_bind_result() before executing the statement or fetching rows. Возвращаемые значенияmaxdb_prepare() returns a statement resource or FALSE if an error occured. ПримерыПример #1 Object oriented style
<?phpПример #2 Procedural style
<?phpРезультатом выполнения данного примера будет что-то подобное:
|
|
|
| © 2009 Тест скорости интернета | Boont.Ru |