Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

save_alternative_file()

Parameters

ColumnTypeDefaultDescription
$resource
$ref

Location

include/resource_functions.php lines 4006 to 4013

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 15th July 2020 02:05 Europe/London time based on the source file dated 13th July 2020 14:40 Europe/London time.