Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » Tech and Talk » OS and Software » Webmasters and Developers » PHP help
Search Topic:
Uniqs:
227
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
Post a:
Post a:
Where settings are saved? Fedex tool »
« Dreamweaver - Multiple Authors Problem  
AuthorAll Replies
-


cdog
Boo
Premium
join:2001-10-11
Chicago, IL
clubs:

PHP help

Hi. I am creating a script for a tournament website i am building for a racing game.

But of course I've run into a snag

the way it works is this

the tournament can have minimum 1 rider to maximum 144

each race room can have maximum 12 riders

the script i have auto-creates the first set of races "heats" perfectly.

the problem i am running into is with the 2nd set of races "semis"

for the semis i take up to maximum top 48 riders from heats. my script works great if i have an even amount of riders going into each semi (max 4 semi rooms at 12 riders each room)

here is an example with an even amount of riders per semi.
»onitracing.net/test.php?totalriders=144

now here is an example of when i don't have the same amount of riders in each semi.
»onitracing.net/test.php?totalriders=76

as you can see it can't properly calculate the riders in each heat.

the thing making it so hard is i want the positions to be staggered from each heat. meaning i don't want all 1st place to go to semi 1, 2nd place to semi 2 etc. i want them to be spread out evenly to each semi.

here is the script. i have been working on it for 2 days and it's driving me insane now.

»cdog.pastebin.com/m7a421e6

to see how the script reacts with different amounts of riders just change totalriders in the url to anything from 1-144
--
If what ya got is perfect and you always want better. Happiness will never come. - [Have Some Fun] -
Forums » Tech and Talk » OS and Software » Webmasters and DevelopersWhere settings are saved? Fedex tool »
« Dreamweaver - Multiple Authors Problem  


Tuesday, 08-Dec 22:10:16 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 10 years online! © 1999-2009 dslreports.com.
page compression OFF
Most commented news this week
· [193] Sprint Sued For Distracted Driving Death
· [81] 3G Network Test Says AT&T Is Tops
· [72] Mediacom Unveils 105 Mbps Pricing
· [62] Sprint Poised For A Turnaround?
· [50] The Future Of Wi-Fi Is Bright
· [48] WPA Cracker: Test WPA-PSK Networks In 20 Minutes
· [47] Site Leaks Yahoo, Verizon Fed Data Share Pricing
· [44] Microwaving Your Innards Is Not 'Extreme'
· [39] Verizon LTE: 5-12 Mbps Downstream
· [18] Verizon Settles With NJ Over Misleading FiOS Marketing
Most people now reading
· Comcast refused to install 400' feet. [Comcast HSI]
· ICC Strats??? [World of Warcraft]
· IMG 1.7 (IMG Updates and Discussion) [Verizon FIOS TV]
· Man Downloads Child Porn "Accidentally," Faces 20 Years [Security]
· Windows 7 boot manager editing questions [Microsoft Help]
· Servers UP!!! [World of Warcraft]
· Comcast Customers: Would You Prefer Metered Billing? [Comcast HSI]
· Account Hacked With Authenticator [World of Warcraft]
· [WIN7] Outlook express under Windows 7? [Microsoft Help]
· Realistic expectation's of all the CRTC hoopla [TekSavvy]