update_resource_field_column()

Description

Update the value of the fieldXX field on resource table

Parameters

ColumnTypeDefaultDescription
$resource integer - Resource ID
$field integer - Metadata field ID
$value string - Value

Return

boolean

Location

include/resource_functions.php lines 8554 to 8560

Definition

 
function update_resource_field_column(int $resourceint $fieldstring $value)
{
    
$sql "UPDATE resource SET `field" $field "` = ? WHERE ref = ?";
    
$params = ["s",truncate_join_field_value($value),"i",$resource];
    
ps_query($sql$params);
    return 
true;
}

This article was last updated 11th July 2025 13:05 Europe/London time based on the source file dated 10th July 2025 10:00 Europe/London time.