How to get the order attribute of a page

Try with echo get_post_field('menu_order', $post->ID);

(or $post->menu_order)

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