Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SQL Syntax error


Turmoil Toad

Recommended Posts

When I use the drop down menu for 'Manufacturers' I get the following error:

 

1064 - You have an error in your SQL syntax near 'order by pd.products_name' at line 1

select count(p.products_id) as total order by pd.products_name

[TEP STOP]

 

I'm an SQL newbie, and not very good with PHP! If there's a file you need to see to help diagnose the problem, I'll post it right away.

 

Also, how do I change the heading 'Manufacturers' to read something else? For instance, if I want it to read 'Lame Stuff I'm selling'...how do I do that?

 

This is an installation of osCommerce v2.2ms2 (1.0-36).

Link to comment
Share on other sites

When I use the drop down menu for 'Manufacturers' I get the following error:

 

1064 - You have an error in your SQL syntax near 'order by pd.products_name' at line 1

select count(p.products_id) as total order by pd.products_name

[TEP STOP]

 

I'm an SQL newbie, and not very good with PHP! If there's a file you need to see to help diagnose the problem, I'll post it right away.

 

Also, how do I change the heading 'Manufacturers' to read something else? For instance, if I want it to read 'Lame Stuff I'm selling'...how do I do that?

 

This is an installation of osCommerce v2.2ms2 (1.0-36).

try:

 

select count(p.products_id) as total order by pd.products_name desc

Your online success is Paramount.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...