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 4370 to 4377

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 24th November 2020 05:35 Europe/London time based on the source file dated 13th November 2020 16:50 Europe/London time.