so i have a query that updates a table:
Code:
$vbulletin->db->query("
UPDATE `" . TABLE_PREFIX . "user`
SET idle = '1'
");
it works fine except for when it runs, it updates ALL users idle column in the DB
i know it needs a WHERE like:
Code:
WHERE userid = " . {$vbulletin->userinfo['userid']}
'but even after combing core files i am unable to get this to trigger just for the current user.
--------------- Added [DATE]1424926781[/DATE] at [TIME]1424926781[/TIME] ---------------
Update* i have solved this with the help of
this thread the answer wasnt printed out, but that article helped alot
by using:
Code:
WHERE userid = '" . $vbulletin->userinfo['userid'] . "'