I have a code like this but it gives me error
include_once 'wp-config.php';
$number = 14 ;
$result = mysql_query ("SELECT * FROM 'wp_posts' WHERE post_status='publish' ORDER BY ID DESC LIMIT $number 14 );
while ($row = mysql_fetch_array($result))
{
$id = $row["ID"];
$title = $row["post_title"];
$content = $row["post_content"];
My blog is wp so any clue to slove this
Thank you