Hei.. I can't wrap my head around it what the problem here might be.
if (!$vote['vid'] and $rq['submitpoll'] and $rq['answer'] and $rq['pid']){
$my->my_query ("INSERT INTO ".TBL_PF."votes (pid, aid, ip) VALUES (".$rq['pid'].", ".$rq['answer'].", ".ip2long($_SERVER['REMOTE_ADDR']).")");
$vote['vid'] = true;
the error I get is
INSERT INTO qwerty_votes (pid, aid, ip) VALUES (1, 10, )
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
maybe someone can enlighten me?
Thank you so much!