Jump to content
MakeWebGames

Voting center


peterisgb

Recommended Posts

Thanks for the mod. But I get this error:

A critical error has occurred, and page execution has stopped. Below are the details:
1136: Column count doesn't match value count at row 1

Action taken: Attempted to execute query: INSERT INTO vote VALUES(NULL, 'test', '', 'test', '1', 'none.png', '1', '1', '1000', 'money')

Any help would be appreciated

 

Link to comment
Share on other sites

35 minutes ago, PHPStudent said:

Thanks for the mod. But I get this error:

A critical error has occurred, and page execution has stopped. Below are the details:
1136: Column count doesn't match value count at row 1

Action taken: Attempted to execute query: INSERT INTO vote VALUES(NULL, 'test', '', 'test', '1', 'none.png', '1', '1', '1000', 'money')

Any help would be appreciated

 

I'll take a look when I get on my pc tomorrow..

I still haven't been able to sort yet as still not been on pc. Go to the file and change (NULL , ' to (' ', ' 

That may work as I use php 7.4 which isn't supported right in mccodes.

  • Thanks 1
Link to comment
Share on other sites

"Column count doesn't match value count" - you're attempting to insert 10 values into a table that doesn't have 10 columns.
Alter the query to insert the correct amount of values (in the correct order), or add named values*.

*

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Link to comment
Share on other sites

15 minutes ago, Magictallguy said:

"Column count doesn't match value count" - you're attempting to insert 10 values into a table that doesn't have 10 columns.
Alter the query to insert the correct amount of values (in the correct order), or add named values*.

*

INSERT INTO table_name (col_1, col_2, col_3) VALUES ('some', 'values', 'here')

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Ty for the help, I've since found another voting script which in itself had issues but its all resolved now. 🙂

 

 

Link to comment
Share on other sites

  • 7 months later...
  • 3 weeks later...
On 9/9/2020 at 1:10 PM, Magictallguy said:

"Column count doesn't match value count" - you're attempting to insert 10 values into a table that doesn't have 10 columns.
Alter the query to insert the correct amount of values (in the correct order), or add named values*.

*

INSERT INTO table_name (col_1, col_2, col_3) VALUES ('some', 'values', 'here')

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

never mind lol... i got it fixed.... i had to change a few other things to get it to work....

 

here is my version that i got working so far, but now you can not edit any sites, even in phpadmin

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Updated SQL to be able to edit sites and details in phpadmin

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Edited by MajikalJoker
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...