Collections functions
General functions
Render functions
Theme permission functions
Resource functions

message_getrefs()

Description

Get all message refs for a given user

Parameters

ColumnTypeDefaultDescription
$user string User ID

Return

void

Location

include/message_functions.php lines 766 to 773

Definition

 
function message_getrefs($user)
    {
    
$user_messages ps_query("SELECT ref FROM user_message WHERE user = ?", array("i",$user));
 
    
$js_array array_values($user_messages);
 
    echo 
json_encode($js_array);
    }

This article was last updated 30th January 2023 07:35 Europe/London time based on the source file dated 12th January 2023 10:25 Europe/London time.