[RSS Feed/News] Updating a value in a db table

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
I added a custom column av-aw-processed into xf-user table. I want to be able to 'mark' users by updating the field (overwrite with the current timestamp).

Is there some built in xF way to do it, like fetching with a finder? Or I should run a usual SQL query like

PHP:

Code:
public function actionProcessed(ParameterBag $params)
    {
        $userId = $params->user_id;
        $time = time();

        $db = $this->app->db();
        $db->query("
        UPDATE xf_user SET...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom