|
mysqli::preparemysqli_preparePrepare an SQL statement for execution DescriptionObject oriented style
mysqli_stmt mysqli::prepare
( string
$query
)Procedural style
mysqli_stmt mysqli_prepare
( mysqli
$link
, string $query
)Prepares the SQL 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 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
mysqli_prepare returns a statement object or ExamplesExample #1 mysqli::prepare example Object oriented style
<?php Procedural style
<?php The above examples will output: Amersfoort is in district Utrecht See Also
|