adwerd0z1 adlı üyeden alıntı: mesajı görüntüle
<?php
$servername = "localhost";
$username = "username";
$password = "password";
$dbname = "database_name";

// Veritabanı bağlantısı
$conn = new mysqli($servername, $username, $password, $dbname);

// Bağlantı kontrol
if ($conn->connect_error) {
    die("Bağlantı hatası: " . $conn->connect_error);
}

// SQL sorgusu
$sql = "SELECT * FROM table_name WHERE column1 LIKE '%$content%' OR column2 LIKE '%$content%' OR column3 LIKE '%$content%' OR column4 LIKE '%$content%' OR column5 LIKE '%$content%'";

// Sorgu sonucu
$result = $conn->query($sql);

if ($result->num_rows > 0) {
    // Sonuçları döngü ile listele
    while($row = $result->fetch_assoc()) {
        echo "id: " . $row["id"]. " - column1: " . $row["column1"]. " - column2: " . $row["column2"]. " - column3: " . $row["column3"]. " - column4: " . $row["column4"]. " - column5: " . $row["column5"]. "<br>";
    }
} else {
    echo "Sonuç bulunamadı.";
}

$conn->close();
?>
hocam concat kullanmak mı daha iyi olur bu şekilde mi? döngüye alacağım..