This question already has an answer here:
i want to display the customers information who was born between 1980 and 1990. And i tried this but it doesnt work. Can u please help me?
This is my php codes.
<?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "company";
$conn = new mysqli($servername, $username, $password, $dbname)
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$sql = "SELECT * FROM musteri WHERE dogumtarih<'1980-01-01' and
dogumtarih>'1990-01-01'";
$result = $conn->query($sql);
?>
</div>