I just tested this and when the user clicked the submit button I have on the page, she received a 404 error and the query didn't work. What have I done wrong? (Sorry so many questions -- this is my first "hack.")
Here is my php script:
PHP Code:
<?php
error_reporting(7);
require('./global.php');
eval("dooutput(\"".gettemplate('forumtrial')."\");");
// ###################### Start Free Trial #######################
if ($HTTP_POST_VARS['action']=="addtrial") {
$DB_site->query("UPDATE user SET usergroupid=21 WHERE userid=$bbuserinfo[userid] AND usergroupid=2,userupgradedate=".time()."");
}
?>