php - can't wrap my head around this SQL syntax error -
hei.. can't wrap head around problem here might be.
if (!$vote['vid'] , $rq['submitpoll'] , $rq['answer'] , $rq['pid']){ $my->my_query ("insert ".tbl_pf."votes (pid, aid, ip) values (".$rq['pid'].", ".$rq['answer'].", ".ip2long($_server['remote_addr']).")"); $vote['vid'] = true;
the error is
insert qwerty_votes (pid, aid, ip) values (1, 10, )
you have error in sql syntax; check manual corresponds mysql server version right syntax use near ')' @ line 1
maybe can enlighten me?
thank much!
Comments
Post a Comment