Jump to content

Help with SELECT command


mcmuney

Recommended Posts

I've been using this line of code for quite some time, but just recently it stopped working:

 

SELECT * FROM sc_rate_avg WHERE type='$rt' ORDER BY (round((sum_/count_),2)) DESC,count_ DESC LIMIT 1

 

I've identified that it's no longer working because of this portion of the code: "(round((sum_/count_),2))"

 

Is there another way of achieving the same results?

Link to comment
https://forums.phpfreaks.com/topic/101511-help-with-select-command/
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.