index.php
/**
 * Perform the empty trash action.
 *
 * @param $sql_conn \mysqli The mysqli connection
 */
Perform the empty trash action.
@param $sql_conn \mysqli The mysqli connection
Perform the empty trash action . @param $sql_conn \ mysqli The mysqli connection
function act_empty_trash($sql_conn)
{
    $result = $sql_conn->query("DELETE FROM `problem` WHERE `follows` = -1;");
    if (!$result) {
        die("empty trash failed: delete");
    }
}
function act_empty_trash ( $ sql_conn ) { $ result = $ sql_conn -> query ( " DELETE FROM `problem` WHERE `follows` = -1; " ) ; if ( ! $ result ) { die ( " empty trash failed: delete " ) ; } }
Perform the empty trash action.
Perform the empty trash action .