hmm
PHP Code:
<?php
// edit these values to match your database information
$server = "localhost";
$user = "root";
$password = "";
$db = "wp";
$con = mysql_connect($server,$user,$password);
if (!$con) {
die("database connection error");
} else {
mysql_select_db($db, $con);
// example query
$result = mysql_query("SELECT * FROM wp_posts
WHERE post_author='1'");
// show all posts by author 1 (admin)
while($row = mysql_fetch_array($result))
{
if($row['post_status'] == "publish") {
echo "".$row['post_title']." <br />";
}
}
}
mysql_close($con);
?>
that would output something similar to:

Originally Posted by
"localhost WP - Aziz
Hello world!
About Us
Lorem Wipsum
Articles
All Articles
Archvies
contact
Links
IRC Chat
Sitemap
Bookmarks