Minimum version: Midgard 1.0
Gets information about the page element record with id id.
Returns an object describing the record if successful. Returns FALSE on failure.
<?php $id = 123; $pe = mgd_get_page_element( $id ); $err = mgd_errno(); if( $err ) { echo "Could not get page element.<br>"; echo "reason: " . mgd_errstr( $err ); } else { echo $pe->value; } ?> |