anladım kucuk bır ornek yazarmısın pekı
$servername = "localhost";
$username = "username";
$password = "password";
$dbname = "myDB";
$paid = false;
$conn = new mysqli($servername, $username, $password, $dbname);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$sql = "SELECT * FROM aidat where aidat_ocak = 'Ödendi' ";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
$paid = true;
}
$conn->close();
?>
Kolay gelsin.