Forum Moderators: coopster
please help me with this Idea.
I making soccer script with expect page but i have problime with expect results display..
how to gathering the similar inputs?
example:
I have 10 inputs in my database:
home_name away_name home_score away_score email
AC Milan InterMilan 2 1 mail@mail.com
AC Milan InterMilan 1 0 mail@mail.com
AC Milan InterMilan 2 2 mail@mail.com
AC Milan InterMilan 1 2 mail@mail.com
AC Milan InterMilan 2 1 mail@mail.com
AC Milan InterMilan 1 0 mail@mail.com
now how to display the results like this:
ACMialn X IntrMilan Percent
2 - 1 : 20%
1 - 0 : 15%
....
...
..
.
translated by google from arabic language
[edited by: eelixduppy at 12:36 am (utc) on Sep. 27, 2008]
[edit reason] removed URL [/edit]
you just need to count them up and then you could do a percentage
loop through the results
check to see if a unique score already exists
if exists, increment count
if not, add new entry
then get the total number of scores and you can switch to a percentage