$uid = $vbulletin->userinfo['userid']; $sql = 'INSERT INTO `subscribecalendar` VALUES (null, '.$uid.', 1, 86400);'; $db->query_write($sql);