search results to a variable in search.php

<?php $search_query = get_search_query(); ?>

I think you’re searching for this function: get_search_query()

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