mgd_get_article

(Midgard 1.4.2 'Bifrost')

mgd_get_article -- Get an article

Description

object mgd_get_article (int id)

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";
}
?>