Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

purchase_set_size()

Parameters

ColumnTypeDefaultDescription
$collection
$resource
$size
$price

Location

include/resource_functions.php lines 7255 to 7260

Definition

 
function purchase_set_size($collection,$resource,$size,$price)
    {
    
// Set the selected size for an item in a collection. This is used later on when the items are downloaded.
    
sql_query("update collection_resource set purchase_size='" escape_check($size) . "',purchase_price='" escape_check($price) . "' where collection='$collection' and resource='$resource'");
    return 
true;
    }

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