Well, if you need to use it in a non-WordPress blog, you're still doing it the wrong way. You can use the same query I use. You just add:
Code:
<?php
require('/the/path/to/your/wp-blog-header.php');
?>
So now we have:
Code:
<?php
require('/the/path/to/your/wp-blog-header.php');
?>
<?php query_posts('showposts=5'); ?>
<?php while (have_posts()) : the_post(); ?>
<li><a href="<?php the_permalink(); ?>">
<?php the_title(); ?></a></li>
<?php endwhile; ?>
Again, you can refer to the codex for using WordPress outside of.. WordPress:
http://codex.wordpress.org/Integrati...h_Your_Website