Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

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 9064 to 9070

Definition

 
function update_resource_field_column(int $resource,int $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 28th March 2024 16:05 Europe/London time based on the source file dated 28th March 2024 11:35 Europe/London time.