Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8015109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T20:09:29+00:00 2026-06-04T20:09:29+00:00

I have a shop site where users can add/edit to a cart from a

  • 0

I have a shop site where users can add/edit to a cart from a displayed list of products. Pretty simple stuff. On my “Add to Cart” button, (this is by client request) a confirm box pops up and asks if the user wants to add more to their cart. If they don’t, it goes to the cart page to check out, if they do want to add more, it just refreshes the same page.

The problem I’m having is AFTER they click something in the confirm box and when that page refreshes, somehow the SELECT query to query the products to bring them up again (the exact query it just did) breaks… only in IE6.

The query itself looks something like this:

  $query_Recordset1 = sprintf("SELECT ProductID, Lang, MasterPack, ProductCategory, ProductSubCategory, Restricted1, ProductCode, ProductDesc, UnitsInStock, Image, Chargeable, UnitPrice, PDFName FROM tblInventory WHERE Client='Tenneco' AND InventoryGroup IN($invGroupStr) ORDER BY ProductCategory, ProductSubCategory, ProductDesc ASC LIMIT %s,50", GetSQLValueString($pg, "int")); 

It breaks at around $invGroupStr) AND ProductCategory='%s' at the bracket. I am certain that $invGroup is set to something.

Query after the sprintf is this:

SELECT ProductID, Lang, MasterPack, ProductCategory, ProductSubCategory, 
       Restricted1, ProductCode, ProductDesc, UnitsInStock, Image, 
       Chargeable, UnitPrice, PDFName 
FROM tblInventory 
WHERE 
    Client='Tenneco' AND InventoryGroup IN('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', '') 
ORDER BY ProductCategory, ProductSubCategory, ProductDesc ASC 
LIMIT 0,50

Is there something obvious that I should look into? This site was originally in PHP4 and is very poorly coded in general (I’m just tasked to take it over from what’s already there).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T20:09:30+00:00Added an answer on June 4, 2026 at 8:09 pm

    Turned out it was a dumb error. When the “add to cart” does the ajax request, it does it under the NOT www. domain, which IE6 treats as a new user and deletes the current user’s session. Which then makes that $invGroup invalid, hence the query fails. Not sure why someone would set it up that way.

    One day I will redo this entire site with proper PHP5… one day.

    Thanks @Jonathan Sampson for the help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a E-Shop Site and I need some customization for my users like
For a site with shopping cart we have https working on the domain.com/shop-2/cart location.
We have a Zend application that has these following modules: Users Shop etc... Front
I have a shop application and another site thats for a special promotion. I've
I have tried to enabled a banner in my opencart shop. The site is
So, I have at site where I want pages such as; www.example.com/shop/index.php (or any
We currently have several underlying database tables such as Events , Shop Products ,
Good day! I have a task to rewrite site from classic asp to .net
I have built a magento template module that produces a list of products for
I have a page on my site where a user can upload a Photoshop,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.