Mysql
 sql >> Base de données >  >> RDS >> Mysql

Requête MySQL à Mysqli et préparation de la déclaration

$stmt = $mysqli->prepare("SELECT * FROM `table` WHERE `columnStr`= ? AND `columnInt`= ?");
$stmt->bind_param('si','string', 1);
$result = $stmt->execute();
while ($row = $result->fetch_row()) {
    var_dump($row);
}

Police :Mysqli Prepare