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 107 to 113

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 2nd December 2020 00:05 Europe/London time based on the source file dated 4th August 2020 08:55 Europe/London time.