Log in

View Full Version : Problem with a basic SQL query in Vbulletin


JoeBOBBillyTed
09-10-2008, 11:17 PM
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

Lynne
09-11-2008, 12:17 AM
query_write, not just query