The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
[SQL] modify table PER USER
so i have a query that updates a table:
Code:
$vbulletin->db->query(" UPDATE `" . TABLE_PREFIX . "user` SET idle = '1' "); i know it needs a WHERE like: Code:
WHERE userid = " . {$vbulletin->userinfo['userid']} --------------- 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'] . "' |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|