Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2006
    Posts
    3
    Plugin Contributions
    0

    1064 SQL syntax error

    When trying to email from "Customers > Subscription Manager" or "Tools > Send Email" I get the following message:


    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 ':admin_id' at line 1
    in:
    [select 'ADMIN' as customers_firstname, admin_name as customers_lastname, admin_email as customers_email_address from swmartadmin where admin_id = $SESSION:admin_id ]
    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.


    Does anyone know what this means?

  2. #2
    Join Date
    Feb 2006
    Posts
    3
    Plugin Contributions
    0

    Re: 1064 SQL syntax error

    I get the 1064 syntax error only after I install the Newletter Subscribe v 2.0.2 to add a Newsletter only function on my website.


    When I try to send email at: 'Tools > Send Email' the error reads:

    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 ':admin_id' at line 1
    in:
    [select 'ADMIN' as customers_firstname, admin_name as customers_lastname, admin_email as customers_email_address from admin where admin_id = $SESSION:admin_id ]
    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.

    Server and version info:

    I have the latest zen cart v 1.3.0.2 installed. MySQL 4.0.26, PHP Version: 4.4.2 (Zend: 1.3.0), Server OS: FreeBSD 5.4-RELEASE-p14, HTTP Server: Apache/1.3.34 (Unix) PHP/4.4.2 mod_ssl/2.8.25 OpenSSL/0.9.7d

    How can this be fixed?

  3. #3
    Join Date
    Mar 2006
    Location
    Jacksonville Fl
    Posts
    73
    Plugin Contributions
    0

    Default Re: 1064 SQL syntax error

    I am getting the same error message using version 1.0.3.2

  4. #4
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: 1064 SQL syntax error

    .

    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.

 

 

Similar Threads

  1. Replies: 1
    Last Post: 25 Aug 2011, 05:58 AM
  2. 1064 error sql syntax
    By pjgscrap in forum General Questions
    Replies: 2
    Last Post: 5 Mar 2009, 05:04 PM
  3. SQL syntax error 1064
    By jackzc in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 27 Sep 2007, 02:29 AM
  4. 1064 sql syntax error
    By jpierre in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 7 Sep 2006, 01:03 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