Jump to content

problem with query


swordske

Recommended Posts

i want to sum the steps together by users then arrange them by order then limit them to display top 3 highest score,but when i query this its not working may i know whats the problem in my query?

 

 

$query2 = "SELECT SUM(steps) AS totalsteps FROM `userinput` WHERE userID = $i ORDER BY totalsteps ASC LIMIT 3";

Link to comment
https://forums.phpfreaks.com/topic/185899-problem-with-query/
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.