Mysql
 sql >> Database >  >> RDS >> Mysql

Query MySQL su Mysqli e Prepare Statement

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

Carattere:Mysqli Prepare