Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2007
    Posts
    47
    Plugin Contributions
    0

    Default How to correct SQL syntax error?

    I am trying to install Hareslade's version of moku's book product type. When I upload the main sql patch file, I get the following error:

    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 'id'=>'1', 'text'=>'True'), array('id'=>'0', 'text'=>'False')), ', now())' at line 1
    in:
    [INSERT INTO product_type_layout (configuration_title, configuration_key, configuration_value, configuration_description, product_type_id, sort_order, set_function, date_added) VALUES ('Enable the Book Search', 'SEARCH_PRODUCT_BOOK_ENABLED', '1', 'Add the books to the search engine 0= off 1= on', '7', '0', 'zen_cfg_select_drop_down(array(array('id'=>'1', 'text'=>'True'), array('id'=>'0', 'text'=>'False')), ', now());]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
    Can anyone help correct this error? What changes would I need to make to the syntax? My server is running MySQL 5.0.24-standard-log

    Thanks in advance.

  2. #2
    Join Date
    Apr 2007
    Posts
    47
    Plugin Contributions
    0

    Default Re: How to correct SQL syntax error?

    Corrections: The MySQL version is 5.0.27

    Also, the drop table and delete commands got executed, it's just the INSERT commands that won't work and the book product type is useless without the stuff that gets added to the product_layout table.

  3. #3
    Join Date
    Jan 2004
    Posts
    63,365
    Blog Entries
    5
    Plugin Contributions
    181

    Default Re: How to correct SQL syntax error?

    Have you tried running it via phpMyAdmin instead ?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Apr 2007
    Posts
    47
    Plugin Contributions
    0

    Default Re: How to correct SQL syntax error?

    Thank you! Don't know how you manage to do it, but your tips are so handy

    I am finally done with the install, thanks entirely to you.

 

 

Similar Threads

  1. Replies: 6
    Last Post: 1 Oct 2011, 03:16 PM
  2. Replies: 1
    Last Post: 25 Aug 2011, 05:58 AM
  3. Error message 1064 you have an error in your sql syntax
    By honrheart in forum General Questions
    Replies: 1
    Last Post: 11 Sep 2009, 02:38 AM
  4. MySQL Error 1064 You have an error in your SQL syntax;
    By dmm2020 in forum General Questions
    Replies: 2
    Last Post: 22 Feb 2009, 05:02 AM
  5. SQL Syntax error: check for right syntax to use near '000000
    By gabyone in forum General Questions
    Replies: 2
    Last Post: 9 Feb 2008, 08:23 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR