$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
$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