Push Shortcode parameter to template

You are probably confused by the output of array_values() which will always get you only array values without keys while $atts variable is actually an associative array.

To extract your attribute use $arr = $atts['tablepageid'];

Cheers

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