Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Pollbooth functionality is hitting brick wall with database.php


Recommended Posts

Although this contribution did not include a mod to the database.php file, it appears there is an issue with it:

 

*********************************

Warning: mysql_insert_id(): supplied argument is not a valid MySQL-Link resource in /home/mytissu/www/testtissu/catalog/admin/includes/functions/database.php on line 117

1064 - 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 ' 'KJLKJKLJ', 0, 0, '1')' at line 1

 

insert into phesis_poll_data (pollid,optiontext,optioncount,voteid, language_id) values (, 'KJLKJKLJ', 0, 0, '1')

 

*******************************************************

I can see the poll admin box on my file manager, but when i try to add a poll and name it, I get the above message. However, it appears that there is some sort of a poll being created on my test site, as you can see here: http://www.testtissu.mytissu.com/catalog

 

this is the contribution: http://www.oscommerce.com/community/contributions,6517

 

please help. I've been modifying the database_tables file since this was omitted from the contribution, but don't know what to do now about the database file.

Learning Unplugged.

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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...