Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product ID includes Session ID in queries


AJRYAN

Recommended Posts

Well, I've spent hours trying to figure this out and come up empty. Can someone Please help?

 

I get the following error message when viewing product_info, and only when cookies are blocked.

I am using Ultimate SEO URL's by Chemo, and it seems for some strange reason this is pulling in the product id and Session info as product ID.

 

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 '?Sid=f24055459f4351be82f75d93b71cde76' at line 1

 

select * from rebate_info where product_id = 80?Sid=f24055459f4351be82f75d93b71cde76

 

Here is some of the code:

 

 

//Rebate, Special Price, Shipping Info

 

$rebate_query = tep_db_query("select * from " . TABLE_REBATES . " where product_id = " . $_GET['products_id']);

$rebate_information = tep_db_fetch_array($rebate_query);

$rebate = $rebate_information[rebate_amount];

$rebate_expiration = $rebate_information[rebate_expires];

$rebate_type = $rebate_information[rebate_type];

 

I would be most obliged for any help. Thanks.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...