Problem with a basic SQL query in Vbulletin
I am teaching myself how to do custom vbulletin hacks. In an attempt to do some for the community. I have been modifying my board for awhile, just now sure how to do everything from scrap.
Here is the code
$vbulletin->db->query("UPDATE user set lastvisit = NOW(), lastactivity = NOW(), lastpost = NOW() where userid= 4293");
I am not sure if the problem is. Do I need to include something that I am not including, is their a error with the query (if so how do I get the errors?
Thanks
|