Mysql
 sql >> Datenbank >  >> RDS >> Mysql

MySQL-Abfrage an Mysqli und Anweisung vorbereiten

$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);
}

Schriftart:Mysqli Prepare