Results 1 to 5 of 5

Threaded View

  1. #2
    Join Date
    Aug 2006
    Location
    United States
    Posts
    28
    Plugin Contributions
    0

    Default Re: php warning and SQL syntax error [1.3.5]

    Until a fix is found I'm just going to change the query to

    PHP Code:
    $sql "select manufacturers_name
                    from zen_manufacturers
                    where manufacturers_name =  " 
    . (int)$_GET[$get_terms->fields['get_term_name']]; 

    Also, the advanced search does not work.
    Code:
    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 '' at line 10
    in:
    [select count(distinct p.products_id) as total FROM zen_products p LEFT JOIN zen_manufacturers m USING(manufacturers_id), zen_products_description pd, zen_categories c, zen_products_to_categories p2c LEFT JOIN zen_meta_tags_products_description mtpd ON mtpd.products_id= p2c.products_id AND mtpd.language_id = 1 WHERE (p.products_status = 1 AND p.products_id = pd.products_id AND pd.language_id = 1 AND p.products_id = p2c.products_id AND p2c.categories_id = c.categories_id AND m.manufacturers_id = 2]
    Last edited by helmetman; 13 Oct 2006 at 10:11 PM.

 

 

Similar Threads

  1. v151 PHP Fatal error: 1064:You have an error in your SQL syntax
    By chaptech in forum General Questions
    Replies: 2
    Last Post: 5 Mar 2015, 07:16 PM
  2. PHP Fatal error: 1064:You have an error in your SQL syntax
    By uswebworx in forum General Questions
    Replies: 11
    Last Post: 19 Apr 2012, 09:17 AM
  3. Replies: 1
    Last Post: 25 Aug 2011, 05:58 AM
  4. Blank page and PHP Parse error: syntax error
    By Spiritus in forum General Questions
    Replies: 8
    Last Post: 17 Mar 2010, 07:16 PM
  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

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