Forum Moderators: coopster

Message Too Old, No Replies

How to make results page for Soccer Script ?

         

mzeed

12:29 am on Sep 27, 2008 (gmt 0)

10+ Year Member



hi evry body,
First, sorry for my bad english

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]

jatar_k

1:05 pm on Sep 30, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



you want to list percentage of scores? That seems an odd way to show it but

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