Jump to content

I want to product ordered by popularity


charge

Recommended Posts

Hi:

I want to product ordered by popularity,and  put sort=count into

 /index.php?id_product=1&controller=product

 

Here my code

 

$link=mysql_connect($_DB_SERVER_,$_DB_USER_,$_DB_PASSWD_);

mysql_select_db($_DB_NAME_,$link);

 

mysql_query($str,$link);

 

$str="update ps_product set count=count+1 where id_product='$id_product'";

 

How to do?Tanks a lot!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...