Open Source Content Management System

mgd_errstr

  1. Description
  2. Example

mgd_errstr -- Get description of latest Midgard error

Description

string mgd_errstr()

Returns a description for the latest error code.

Example

<?php
if (!$article->update())
{
    echo "Failed to update article, reason ".mgd_errstr();
}
?>

Will print something like Failed to update article, reason Name exists.

Designed by Nemein, hosted by Anykey