Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

1064 error orders.php


dootch

Recommended Posts

In the admin panel when I click to view orders I get the following error message

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 1

 

select products_description as desc_info from products_description where products_id =

 

[TEP STOP]

I have tracked that piece of code as coming from admin/includes/classes/orders.php its on about line 38
$description_query = tep_db_query("select products_description as desc_info from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = " . $orders_products['orders_products_id']);

I looked at some of my other snapshots and it doesnt exist . So I take it out and the line under and it works. Does any one see a problem with this line of code. I would like to see what it does. I have added so many mods I can't pinpoint it. Any idea's?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...