display a message if get form is empty

If anyone faces the same problem, its easy to display a message with have_posts()

<?php if ( have_posts() ) {
    echo "Events gefunden";
} else {
    echo "Keine Events gefunden";
}
?>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)