Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Syntax error?


Recommended Posts

Hi,

 

I really like this idea and have made the amendments mentioned. The orders.php page works fine but I have a syntax error on the orders.php page that reads..........

 

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 's.language_id = '1' and ot.class = 'ot_total'' at line 1

 

select count(*) as total from orders o left join orders_total ot on (o.orders_id = ot.orders_id), orders_status s where o.orders_status = 1 and o.orders_status = s.orders_status_idand s.language_id = '1' and ot.class = 'ot_total'

 

Can you help please as I know that it is something to do with the following instructon: -

 

Now in admin/orders.php find this in 2 places:

 

------------------------

where o.orders_status = s.orders_status_id

------------------------

 

Change to:

------------------------

where o.orders_status != 2 and o.orders_status = s.orders_status_id

 

 

Any help would be much appreciated.

 

Many thanks.

 

Paul.

You will never learn if you don't try. And boy am I trying....!

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.

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