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

get_alternative_file()

Parameters

ColumnTypeDefaultDescription
$resource
$ref

Location

include/resource_functions.php lines 4365 to 4372

Definition

 
function get_alternative_file($resource,$ref)
    {
    
$resource escape_check($resource);
    
$ref escape_check($ref);
    
# Returns the row for the requested alternative file
    
$return=sql_query("select ref,name,description,file_name,file_extension,file_size,creation_date,alt_type from resource_alt_files where resource='$resource' and ref='$ref'");
    if (
count($return)==0) {return false;} else {return $return[0];}
    }

This article was last updated 3rd December 2020 13:35 Europe/London time based on the source file dated 30th November 2020 11:55 Europe/London time.