Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

save_related_keywords()

Parameters

ColumnTypeDefaultDescription
$keyword
$related

Location

include/search_functions.php lines 2295 to 2311

Definition

 
function save_related_keywords($keyword,$related)
    {
    
debug_function_call("save_related_keywords"func_get_args());

    
$keyref resolve_keyword($keywordtruefalsefalse);
    
$s=trim_array(explode(",",$related));

    
sql_query("DELETE FROM keyword_related WHERE keyword = '$keyref'");
    if (
trim($related)!="")
        {
        for (
$n=0;$n<count($s);$n++)
            {
            
sql_query("insert into keyword_related (keyword,related) values ('$keyref','" resolve_keyword($s[$n],true,false,false) . "')");
            }
        }
    return 
true;
    }

This article was last updated 13th July 2020 14:05 Europe/London time based on the source file dated 7th July 2020 15:22 Europe/London time.