php[world] 2015 Schedule Announced

mysqli::stmt_init

mysqli_stmt_init

(PHP 5)

mysqli::stmt_init -- mysqli_stmt_initInitializes a statement and returns an object for use with mysqli_stmt_prepare

Descrizione

Stile orientato agli oggetti

mysqli_stmt mysqli::stmt_init ( void )

Stile procedurale

mysqli_stmt mysqli_stmt_init ( mysqli $link )

Allocates and initializes a statement object suitable for mysqli_stmt_prepare().

Nota:

Any subsequent calls to any mysqli_stmt function will fail until mysqli_stmt_prepare() was called.

Elenco dei parametri

link

Solo nello stile procedurale: un identificatore restituito da mysqli_connect() o mysqli_init()

Valori restituiti

Returns an object.

Vedere anche:

add a note add a note

User Contributed Notes 2 notes

up
9
mamdo7 at hotmail dot com
1 year ago
you can use $stmt = $mysqli->prepare(); directly without stmt-init() . i think there is no need for stmt-init .
up
-2
Deepak Sati
25 days ago
If your sql query has some errors and you don't use stmt_init() before preparing the statement, you won't get error message for wrong sql query.
To Top