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

message_remove()

Description

Remove a message from message table and associated user_messages

Parameters

ColumnTypeDefaultDescription
$message int Message ID

Return

void

Location

include/message_functions.php lines 106 to 112

Definition

 
function message_remove($message)
    {
    
$message escape_check($message);

    
sql_query("DELETE FROM user_message WHERE message='{$message}'");
    
sql_query("DELETE FROM message WHERE ref='{$message}'");    
    }

This article was last updated 15th May 2021 00:05 Europe/London time based on the source file dated 7th May 2021 16:05 Europe/London time.