Conditonal statement for iPad

there’s no foolproof method for doing this, but a quick and simple solution is to look at http user agent:

<?php
if( preg_match('/ipad/i',$_SERVER['HTTP_USER_AGENT']) ):
    echo "is iPad";
endif;

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