Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video functions
Resource functions

save_alternative_file()

Parameters

ColumnTypeDefaultDescription
$resource
$ref

Location

include/resource_functions.php lines 4469 to 4476

Definition

 
function save_alternative_file($resource,$ref)
    {
    
# Saves the 'alternative file' edit form back to the database
    
$sql="";
    
    
# Save data back to the database.
    
sql_query("update resource_alt_files set name='" getvalescaped("name","") . "',description='" getvalescaped("description","") . "',alt_type='" getvalescaped("alt_type","") . "' $sql where resource='$resource' and ref='$ref'");
        }

This article was last updated 12th May 2021 05:35 Europe/London time based on the source file dated 11th May 2021 10:25 Europe/London time.