Minimum version: Midgard 1.0
Retrieves information about an article record.
Returns an object describing the article with id id if successful. Returns FALSE on failure.
<?php
$article = mgd_get_article(123 );
if(! $article ) {
echo "failed to get article.<br>\n";
echo "reason: " . mgd_errstr();
} else {
echo $article->title . "<br>\n";
}
?>
|