|
mysqli_stmt::executemysqli_stmt_executeExecutes a prepared Query BeschreibungObjektorientierter Stil
bool mysqli_stmt::execute
( void
)
Prozeduraler Stil
bool mysqli_stmt_execute
( mysqli_stmt
$stmt
)Executes a query that has been previously prepared using the mysqli_prepare function. When executed any parameter markers which exist will automatically be replaced with the appropriate data. If the statement is UPDATE, DELETE, or INSERT, the total number of affected rows can be determined by using the mysqli_stmt_affected_rows function. Likewise, if the query yields a result set the mysqli_stmt_fetch function is used.
Parameter-Liste
Rückgabewerte
Gibt bei Erfolg BeispieleBeispiel #1 Objektorientierter Stil
<?phpBeispiel #2 Prozeduraler Stil
<?phpDie obigen Bespiele erzeugen folgende Ausgabe: Stuttgart (DEU,Baden-Wuerttemberg) Bordeaux (FRA,Aquitaine) Siehe auch
|