update( $wpdb->posts, array( 'post_parent' => $post_id ), array( 'ID' => $ag_aid ), array( '%d' ), array( '%d' ) ); if ( $error == 1 ) { echo ''; } else { echo '

An error was ocurred while processing your request.

'; } } ?>