Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test 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 9305 to 9311

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 4th December 2024 09:05 Europe/London time based on the source file dated 28th November 2024 12:10 Europe/London time.