Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Great contrib, but if change to counter decs i got an mysql error

 

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 'DESCcustomers_id' at line 1

 

select count(*) as total from visitors ORDER BY counter DESCcustomers_id

  • 6 months later...
Posted
Great contrib, but if change to counter decs i got an mysql error

 

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 'DESCcustomers_id' at line 1

 

select count(*) as total from visitors ORDER BY counter DESCcustomers_id

 

 

 

In case anyone else is having this problem, I figured it out. At around line 192, look for:

 

switch ($listing) { 
     case "counter-asc": 
       $order .= "counter"; 
     break; 
     case "counter-desc": 
       $order .= "counter DESC";

 

After $order .= "counter DESC"; add:

 

break;

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