Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

add_saved_search()

Description

Add a saved search to a collection

Parameters

ColumnTypeDefaultDescription
$collection integer

Return

void

Location

include/collections_functions.php lines 1642 to 1646

Definition

 
function add_saved_search($collection)
    {
    
sql_query("insert into collection_savedsearch(collection,search,restypes,archive) values ('" 
        
escape_check($collection) . "','" getvalescaped("addsearch","") . "','" getvalescaped("restypes","") . "','" getvalescaped("archive","") . "')");
    }

This article was last updated 10th July 2020 20:35 Europe/London time based on the source file dated 9th July 2020 17:22 Europe/London time.