PHP Error handling function mgd_errno
Get latest error constant.
int mgd_errno(void);
Returns latest error constant ,or MGD_ERR_OK in case of no error.
Example
$obj = new midgard_person(10);
$obj->username = "John";
if(!$obj->update()) {
if(mgd_errno() == MGD_ERR_ACCESS_DENIED)
echo "Coudn't update person record. Permission denied";
}
