SMFHacks.com

Modifications/Themes => General SMF Forum => Topic started by: shuban on August 17, 2016, 05:37:26 pm

Title: Replace into MySQL question
Post by: shuban on August 17, 2016, 05:37:26 pm
Code: [Select]
$request = db_query("
            REPLACE INTO {$db_prefix}log_activity (date, topics, posts, registers) values('$myDate', $val[topic_count], $val[message_count], $val[member_count])",
        __FILE__, __LINE__);

When I run this query, it makes the last column "mostON" to 0. How can I alter this query so that it leaves the values for "mostON" column the way they are :-\
Title: Re: Replace into MySQL question
Post by: SMFHacks on August 17, 2016, 06:12:18 pm
It changes the whole table?