PHP 5.6.0RC3 is available

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

Descrição

Estilo orientado à objeto

mysqli_stmt mysqli::stmt_init ( void )

Estilo procedural

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.

Parâmetros

link

Procedural style only: A link identifier returned by mysqli_connect() or mysqli_init()

Valor Retornado

Returns an object.

Veja Também

add a note add a note

User Contributed Notes 1 note

up
0
mamdo7 at hotmail dot com
1 month ago
you can use $stmt = $mysqli->prepare(); directly without stmt-init() . i think there is no need for stmt-init .
To Top