osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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 ...



Find us on Facebook
Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Connect with Facebook Register FAQDonate Members List Calendar Mark Forums Read


Closed Thread

 

LinkBack Thread Tools
  #1  
Old 02-05-2009, 06:45 AM
Member
 
Join Date: Aug 2008
Location: Canada
Posts: 61
Thanks: 10
Thanked 2 Times in 2 Posts
Rep Power: 2
BrandonScottishRegalia is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 02-05-2009, 09:17 AM
michael_s's Avatar
osCMax Developer


 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 15,767
Thanks: 139
Thanked 609 Times in 521 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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

*** Do not PM me requesting paid help. The only paid work I do is for AABox Web Hosting customers ***

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 User Manual - osCMax Templates - Advanced Template Tutorial

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
The Following User Says Thank You to michael_s For This Useful Post:
BrandonScottishRegalia (02-05-2009)
  #3  
Old 02-05-2009, 09:59 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 2,681
Thanks: 12
Thanked 214 Times in 196 Posts
Rep Power: 20
jpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud of
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Tags
header tags, mysql

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Contrib Checker michael_s New osCommerce Contributions 0 08-05-2008 08:00 AM
Contrib Checker michael_s New osCommerce Contributions 0 08-05-2008 06:00 AM
installing GPG contrib kerrydax osCommerce 2.2 Modification Help 27 08-20-2006 01:01 PM
help with pwa contrib dmiles osCMax v1.7 Discussion 8 05-15-2004 02:50 PM
header / header.php top logo problem the_error_king osCommerce 2.2 Modification Help 0 04-05-2004 05:02 PM


All times are GMT -8. The time now is 08:26 PM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2009 osCMax
Inactive Reminders By Icora Web Design