osCmax v2.5 User Manual
Results 1 to 3 of 3

MySQL Help with Header Tag contrib.

This is a discussion on MySQL Help with Header Tag contrib. within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hello I need some help have a problem with my oscommerce site. When trying to enter a featured product i ...

      
  1. #1
    Member
    Join Date
    Aug 2008
    Location
    Canada
    Posts
    61
    Rep Power
    4


    Exclamation MySQL Help with Header Tag contrib.

    Hello

    I need some help have a problem with my oscommerce site. When trying to enter a featured product i get this error
    1054 - Unknown column 'cd.categories_htc_title_tag' in 'field list'

    select c.categories_id, cd.categories_name, c.categories_image, c.parent_id, c.sort_order, c.date_added, c.last_modified, cd.categories_htc_title_tag, cd.categories_htc_desc_tag, cd.categories_htc_keywords_tag, cd.categories_htc_description from categories c, categories_description cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id = '1' order by c.sort_order, cd.categories_name

    [TEP STOP]

    My friend who is the host provider says it is something to do with the header tag sql not being mysql5 complient.

    this is the failing query:
    $manStr = "select mi.manufacturers_htc_title_tag as htc_title_tag, mi.manufacturers_htc_desc_tag as htc_desc_tag, mi.manufacturers_htc_keywords _tag as htc_keywords_tag from " . TABLE_MANUFACTURERS . " m LEFT JOIN " . TABLE_MANUFACTURERS_INFO . " mi on m.manufacturers_id = mi.manufacturers_id where m.manufacturers_id = '" . (int)$_GET['manufacturers_id'] . "' and mi.languages_id = '" . (int)$languages_id . "'";

    line36 of header_tags.php

    it probably works with mysql4 but not mysql5 as V5 is more standardised and complies more strickly to the SQL95 standard

    Can someone please help me fix this problem?

    Thanks
    Brandon

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: MySQL Help with Header Tag contrib.

    Change this:
    PHP Code:
    $manStr "select mi.manufacturers_htc_title_tag as htc_title_tag, mi.manufacturers_htc_desc_tag as htc_desc_tag, mi.manufacturers_htc_keywords _tag as htc_keywords_tag from " TABLE_MANUFACTURERS " m LEFT JOIN " TABLE_MANUFACTURERS_INFO " mi on m.manufacturers_id = mi.manufacturers_id where m.manufacturers_id = '" . (int)$_GET['manufacturers_id'] . "' and mi.languages_id = '" . (int)$languages_id "'"
    to this:

    PHP Code:
    $manStr "select mi.manufacturers_htc_title_tag as htc_title_tag, mi.manufacturers_htc_desc_tag as htc_desc_tag, mi.manufacturers_htc_keywords _tag as htc_keywords_tag from (" TABLE_MANUFACTURERS " m) LEFT JOIN " TABLE_MANUFACTURERS_INFO " mi on m.manufacturers_id = mi.manufacturers_id where m.manufacturers_id = '" . (int)$_GET['manufacturers_id'] . "' and mi.languages_id = '" . (int)$languages_id "'"
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default Re: MySQL Help with Header Tag contrib.

    Which one and version?

    try:
    osCommerce Community Add-Ons
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

Similar Threads

  1. Contrib Checker
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 08-05-2008, 08:00 AM
  2. Contrib Checker
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 08-05-2008, 06:00 AM
  3. installing GPG contrib
    By kerrydax in forum osCommerce 2.2 Modification Help
    Replies: 27
    Last Post: 08-20-2006, 01:01 PM
  4. help with pwa contrib
    By dmiles in forum osCmax v1.7 Discussion
    Replies: 8
    Last Post: 05-15-2004, 02:50 PM
  5. header / header.php top logo problem
    By the_error_king in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 04-05-2004, 05:02 PM

Tags for this Thread

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
  •