SqlStatement::bind

(No version information available, might only be in Git)

SqlStatement::bindBind statement parameters

Description

public mysql_xdevapi\SqlStatement::bind(string $param): mysql_xdevapi\SqlStatement

Avertissement

Cette fonction est actuellement non documentée ; seule la liste des arguments est disponible.

Liste de paramètres

param

Valeurs de retour

Exemples

Exemple #1 mysql_xdevapi\SqlStatement::bind() example

<?php

/* ... */

?>
add a note add a note

User Contributed Notes 1 note

up
0
me25show at gmail dot com
5 years ago
bind using example:
<?php
try {
   
$session = mysql_xdevapi\getSession("mysqlx://user:password@host");
} catch(
Exception $e) {
    die(
"Connection could not be established: " . $e->getMessage());
}
$stmt = $session->sql("SELECT * FROM table WHERE id=? AND data=?");
$stmt->bind(1);
$stmt->bind("data");
$result = $stmt->execute();

?>
To Top