mgd_update_element

(Midgard 1.4.2 'Bifrost')

mgd_update_element -- Modify an element record

Description

bool mgd_update_element (int id, string name, string value)

Minimum version: Midgard 1.0

Updates the element record with id id with the information provided.

Returns TRUE on success, FALSE on failure.


<?php
  $id    = 17;
  $name  = "ROOT";
  $value = "<HTML><BODY><(title)><(content)></BODY></HTML>";
  if(mgd_update_element( $id, $name, $value )){
    echo "Updated element.";
  }else{
    echo "Could not update element";
  }
?>