PHP Code:
$vbulletin->input->clean_array_gpc('p', array(
'gbID' => TYPE_NOHTML,
'userID' => TYPE_NOHTML,
'date' => TYPE_NOHTML,
'message' => TYPE_NOHTML,
'Submit' => TYPE_NOCLEAN,
'u' => TYPE_UINT
));
if ($vbulletin->GPC['submit'])
{
$vbulletin->db->query_write("
INSERT INTO " . TABLE_PREFIX . "RobinsGB
(gbID, userID, `date`, message)
VALUES (
'" . $db->escape_string($vbulletin->GPC['gbID']) . "',
" . $vbulletin->userinfo['userid'] . ",
'" . $db->escape_string($vbulletin->GPC['date']) . "',
'" . $db->escape_string($vbulletin->GPC['message']) . "'
)
");
// redirect?
}
You had various syntax errors, typos, etc. Someone else can look at the various logical errors and see if they can make sense of it.