Search using WP_Query

Add this line –

<?php $search_query['post_type'] = 'products'; ?>

Just before the line –

<?php $search = new WP_Query($search_query); ?>

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