Minimum version: Midgard 1.1.1 (Iron River)
Modifies the topic record with the given id number. Returns true on success and false on failure. Only owners of a topic are allowed to modify the record.
Also available as method update() for topic objects starting from Midgard 1.4 (Bifrost)
<?php mgd_errno(); $upd = mgd_update_topic(17,'Midgard Improved Manual', 'A topic update example', 'Extra free form information', 1, '<?php phpinfo(); ?>' ); if (!$tp) { echo "Topic update failed.<br>"; echo "reason: " . mgd_errstr(mgd_errno()); } else { echo "Topic updated."; } ?>
?php /* object prototype class { var $N; var $id; var $article; var $type; var $name; var $content; var $size; var $md5; var $sitegroup; function fetch(); } */ $id = 123; $att = mgd_list_files( $id ); if( $att-> == 0 ) { echo "No attachments"; } else { while( $att-fetch() } ?>&(att.name);, size: &(att.size);<?php } } ?>