Get data from wp_posts of mysql in to variables of wordpress-php script

Use the get_post (see: get_post reference) to get a post like $post = get_post(1); and then say: $post->post_status

— EDIT

Or even better use the get_post_status (see: get_post_status) like $post_status = get_post_status(1);

tech