Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

add_alternative_file()

Parameters

ColumnTypeDefaultDescription
$resource
$name
$description ""
$file_name ""
$file_extension ""
$file_size 0
$alt_type ''

Location

include/resource_functions.php lines 3937 to 3941

Definition

 
function add_alternative_file($resource,$name,$description="",$file_name="",$file_extension="",$file_size=0,$alt_type='')
    {
    
sql_query("insert into resource_alt_files(resource,name,creation_date,description,file_name,file_extension,file_size,alt_type) values ('" escape_check($resource) . "','" escape_check($name) . "',now(),'" escape_check($description) . "','" escape_check($file_name) . "','" escape_check($file_extension) . "','" escape_check($file_size) . "','" escape_check($alt_type) . "')");
    return 
sql_insert_id();
    }

This article was last updated 11th July 2020 03:35 Europe/London time based on the source file dated 10th July 2020 16:06 Europe/London time.