$language = 'Bavarian';
$official = "F";
$percent = 11.2;
/* execute prepared statement */
mysqli_stmt_execute($stmt);
printf("%d Row inserted.\n", mysqli_stmt_affected_rows($stmt));
/* close statement and connection */
mysqli_stmt_close($stmt);
/* Clean up table CountryLanguage */
mysqli_query($link, "DELETE FROM CountryLanguage WHERE Language='Bavarian'");
printf("%d Row deleted.\n", mysqli_affected_rows($link));
/* close connection */
mysqli_close($link);
?>
The above examples will output:
1 Row inserted.
1 Row deleted.
See Also
mysqli_stmt_bind_result
mysqli_stmt_execute
mysqli_stmt_fetch
mysqli_prepare
mysqli_stmt_send_long_data
mysqli_stmt_errno
mysqli_stmt_error
20.7.3.10.5. mysqli_stmt::bind_result,
Copyright 1997-2012 the PHP Documentation Group. [2230]
•
mysqli_stmt::bind_result
mysqli_stmt_bind_result
Binds variables to a prepared statement for result storage
Description
Object oriented style
bool mysqli_stmt::bind_result(
mixed var1,
mixed ...);
Procedural style
bool mysqli_stmt_bind_result(
mysqli_stmt stmt,
mixed var1,
mixed ...);
Binds columns in the result set to variables.
MySQL Improved Extension (Mysqli)
mysqli_stmt_bind_result
2442
Need help?
Do you have a question about the 5.0 and is the answer not in the manual?
Questions and answers