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
    60,178
    Blog Entries
    4
    Plugin Contributions
    139

    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!
    Donations always welcome: www.zen-cart.com/donate

    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. Parse error: syntax error, unexpected $end
    By technicallynorth in forum General Questions
    Replies: 14
    Last Post: 15 Nov 2009, 08:08 AM
  2. Replies: 2
    Last Post: 3 Jul 2007, 06:39 PM
  3. 1064 SQL syntax error
    By swmart77 in forum General Questions
    Replies: 3
    Last Post: 16 Jul 2006, 08:58 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
  •