
Druckansicht von http://www.php-homepage.de/manual/function.mysqli-stmt-prepare.php
mysqli_stmt_preparestmt->prepare()(No version information available, might be only in CVS) stmt->prepare() — Prepare a SQL statement for execution BeschreibungProcedure style:
bool mysqli_stmt_prepare
( mysqli_stmt $stmt
, string $query
)
Object oriented style (method) mysqli_stmt
mixed prepare
( 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. Parameter Liste
RückgabewerteGibt bei Erfolg TRUE zurück, im Fehlerfall FALSE. BeispieleExample#1 Object oriented style
<?phpExample#2 Procedural style
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe:
|