Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 210725

Help needed – DB ranking by calculating difference of 2 number columns

$
0
0

Replies: 0

Hey guys!
First of all, thank you for this awesome plugin. It’s ideal to display the data inserted via form.
Now I have one special wish but I need help since I haven’t worked with PHP/mySQL in forever, maybe you can give me some advice on how to achieve it and whether it is possible with this plugin in the first place.

My table looks like this:

Since its in German, here some background information:
It’s a ranking list for a competition. The user insert the time they started the competition (hh:mm:ss) “x”and when they finished (hh:mm:ss) “y”. I want it to be able to sort the table by who has completed the competition the fastest. Like it is possible in excel I need the table to calculate the difference between those two columns “x” and “y”. So the column “z” would show the difference, the time it took to complete the competition. It would be magnificent if it would even be possible to create a new column with “1st place” “2nd place” and so on, so people can see their ranking immediately.
My problem is, I have no idea if this is possible and how. Maybe there is already a plugin or addon for this or we could make this happen?

If someone would be able to help me realize this, I’d be thrilled. I’d also be happy to get in touch with you via Skype, Teamspeak or Facebook for further communication to work on this together.


Viewing all articles
Browse latest Browse all 210725

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>