Uncaught TypeError: number is not a function [closed]

Try this:

<script type="text/javascript" charset="utf8">
jQuery(function($){
    $('img').each( function() {
        var mySrc = $(this).attr( "src" );
        $(this).wrap( '<a href="'+mySrc+'" class="link"></a>' );
    });
})
</script>

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