MyBB Community Forums

Full Version: Integrating MyBB into your website. (Login Form)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
I hope I've come to the right place here.

We've got a site setup and we're trying to integrate myBB into it a little more than we have in the past. Currently we're only really got a poll system setup on our homepage and that's what I'm looking for some help with today.

If I make a poll and allow only one vote per account... no problem. Works great in both the forums and the home page.

If I want to allow multiple votes per account, we get an error when submitting the vote and it doesn't matter how many options you pick, you still get the error.

The error reads as follows:

MyBB has experienced an internal SQL error and cannot continue.
SQL Error:1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 3Query:INSERT INTO mybb_pollvotes (pid,uid,voteoption,dateline) VALUES
Please contact the MyBB Group for technical support.

I wonder if anyone has any thoughts on what's happening and how I can fix it.

Thanks for your time.
Seems like the error is incomplete. You probably not included and/or adapted properly the code that handles the poll insertion, or used a incorrect setup of the form if it only sends it to a mybb file.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48