|
mysqli_stmt::preparemysqli_stmt_preparePrepare an SQL statement for execution DescriptionObject oriented style
mixed mysqli_stmt::prepare
( string
$query
)Procedural style
bool mysqli_stmt_prepare
( mysqli_stmt
$stmt
, string $query
)Prepares the SQL query pointed to by the null-terminated string query. The parameter markers must be bound to application variables using mysqli_stmt_bind_param and/or mysqli_stmt_bind_result before executing the statement or fetching rows.
Parameters
Return Values
Returns ExamplesExample #1 Object oriented style
<?php Example #2 Procedural style
<?php The above examples will output: Amersfoort is in district Utrecht See Also
|