Error when it comes to convert the polls section *** SOLVED ***

Started by indamix, February 13, 2007, 02:24:44 PM

Previous topic - Next topic

indamix

This is the message I get when it comes to the poll section.

------------------------------------------------------------------------------------------------
Converting poll options... Unsuccessful!
This query:

    INSERT INTO `indamix_smf`.smf_poll_choices
    (ID_POLL, ID_CHOICE, label, votes)
    VALUES (1, SUBSTRING('0', 1, 255), 'YES', 1, 255), '8'),
    (1, SUBSTRING('1', 1, 255), 'NO', 1, 255), '2'),
    (1, SUBSTRING('2', 1, 255), 'MAYBE', 1, 255), '1'),
    (2, SUBSTRING('0', 1, 255), 'La boom', 1, 255), '0'),
    (2, SUBSTRING('1', 1, 255), 'Vatican', 1, 255), '0'),
    (2, SUBSTRING('2', 1, 255), 'Opium', 1, 255), '1'),
    (2, SUBSTRING('3', 1, 255), 'Bacci', 1, 255), '0'),
    (2, SUBSTRING('4', 1, 255), 'Upper club', 1, 255), '0'),
    (2, SUBSTRING('5', 1, 255), 'Time supperclub', 1, 255), '0'),
    (2, SUBSTRING('6', 1, 255), '1234', 1, 255), '3'),
    (2, SUBSTRING('7', 1, 255), 'Joy', 1, 255), '0'),
    (2, SUBSTRING('8', 1, 255), '4play', 1, 255), '0'),
    (2, SUBSTRING('9', 1, 255), 'Central station', 1, 255), '3'),
    (2, SUBSTRING('10', 1, 255), 'Dome', 1, 255), '0'),
    (2, SUBSTRING('11', 1, 255), 'Foufounes électriques', 1, 255), '0'),
    (2, SUBSTRING('12', 1, 255), 'Living', 1, 255), '1'),
    (2, SUBSTRING('13', 1, 255), 'Parking', 1, 255), '0'),
    (2, SUBSTRING('14', 1, 255), 'Roxy', 1, 255), '0'),
    (2, SUBSTRING('15', 1, 255), 'S.A.T.', 1, 255), '0'),
    (2, SUBSTRING('16', 1, 255), 'Salon Daomé', 1, 255), '0'),
    (2, SUBSTRING('17', 1, 255), 'Stereo Bar', 1, 255), '2'),
    (2, SUBSTRING('18', 1, 255), 'Unity II', 1, 255), '0'),
    (2, SUBSTRING('19', 1, 255), 'Other / Autres...', 1, 255), '1'),
    (3, SUBSTRING('0', 1, 255), 'YES', 1, 255), '4'),
    (3, SUBSTRING('1', 1, 255), 'NO', 1, 255), '0'),
    (3, SUBSTRING('2', 1, 255), 'MAYBE', 1, 255), '0'),
    (4, SUBSTRING('0', 1, 255), 'Amazing', 1, 255), '3'),
    (4, SUBSTRING('1', 1, 255), 'Very Good', 1, 255), '0'),
    (4, SUBSTRING('2', 1, 255), 'Normal', 1, 255), '1'),
    (4, SUBSTRING('3', 1, 255), 'Bad', 1, 255), '2'),
    (4, SUBSTRING('4', 1, 255), 'Not my style', 1, 255), '0'),
    (5, SUBSTRING('0', 1, 255), 'looking for a track', 1, 255), '0'),
    (5, SUBSTRING('1', 1, 255), 'looking for a track', 1, 255), '0'),
    (5, SUBSTRING('2', 1, 255), 'looking for a track', 1, 255), '0');

Caused the error:

    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 ''8'),
    (1, SUBSTRING('1', 1, 255), 'NO', 1, 255), '2'),
    (1, SUBST' at line 3

---------------------------------------------------------------------------------------------

Any help would be greatly appreciated !! 

theonetruebix

Ok this thread title says "SOLVED" but doesn't explain how. Heh.

Advertisement: