How do I use a block to display search results?

As of now, this is not possible; you still have to design the template of the search results as if it were a php page in the old way.

There is ongoing development a query block that would solve your case and provide a way to insert the search results.

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