Quote:
Originally posted by Xenon
the query is just as easy:
[sql]UPDATE user SET usergroupid=X WHERE userid=yyy AND usergroupid=y[/sql]
you just have to replce the variables..
|
OK, I'm a little confused on this part. The actual php string will need to be something like this, right?
PHP Code:
$DB_site->query("UPDATE user SET usergroupid=X WHERE userid=yyy AND usergroupid=y,userupgradedate=".time()."");
So, how will the script know what the userid is?