i'm getting so close to giving up on this, i dunno what's wrong with it, i've tried so many methods, but it's not passing to the database, infact i get the error i set up to say the vote cannot be processed
PHP Code:
if ($_POST['submit'] == "rate") {
$confessionid = intval($_POST['confessionid']);
$verify = $DB_site->query_first("SELECT userid FROM confession_rate WHERE confessionid = $confessionid AND userid = $bbuserinfo[userid]");
if ($verify) {
eval("standarderror(\"".gettemplate("confession_error_novotetwice")."\");");
} else {
$DB_site->query("INSERT INTO confession_rate SET
confessionid = '$confessionid',
userid = '$bbuserinfo[userid]',
rate = '$rate',
timestamp = '".time ()."'");
header("Location: $PHP_SELF?s="); //takes you back to main confession page
}
} else {
eval("standarderror(\"".gettemplate("confession_error_vote")."\");");
}
arghhh, i think i just found it, i tried to pass the username with the form and not the userid

will check it now