How to check $_GET isset for a parameter and value? [closed]

Try this-

<?php if( isset( $_GET['name'] ) && $_GET['name'] == 'john' ) : ?>
    // some code
    // some code
    // some code
<?php endif; ?>

You need to check if $_GET['name'] exists AND if its value is john.

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