PHP-Code:
<?php
$ergebnis = mysqli_query($db, "SELECT * FROM prot WHERE anlass LIKE '".$_POST['suche']."%' OR thema LIKE '".$_POST['suche']."%'");
while($row = mysqli_fetch_object($ergebnis))
{
?>
PHP-Code:
<?php echo $row->anlass; ?>
PHP-Code:
<?php
}
?>
Die Suche funktioniert nur bei "anlass"
die suche soll wie am anfang beschrieben nach einem inhalt bei "thema" suchen ^^
Kommentar