<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0" xmlns:blogChannel="http://backend.userland.com/blogChannelModule">

<channel>
<title>PHP help in Webmasters and Developers</title>
<link>http://www.dslreports.com/forum/r21453113</link>
<description></description>
<language>en</language>
<pubDate>Mon, 30 Nov 2009 05:27:15 EDT</pubDate>
<lastBuildDate>Mon, 30 Nov 2009 05:27:15 EDT</lastBuildDate>

<item>
<title>PHP help</title>
<link>http://www.dslreports.com/forum/remark,21453113</link>
<description><![CDATA[<A HREF="/useremail/u/493736"><b>cdog</b></A> : Hi. I am creating a script for a tournament website i am building for a racing game.<br><br>But of course I've run into a snag<br><br>the way it works is this<br><br>the tournament can have minimum 1 rider to maximum 144<br><br>each race room can have maximum 12 riders<br><br>the script i have auto-creates the first set of races "heats" perfectly.<br><br>the problem i am running into is with the 2nd set of races "semis"<br><br>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)<br><br>here is an example with an even amount of riders per semi.<br>&raquo;<A HREF="http://onitracing.net/test.php?totalriders=144" >onitracing.net/test.php?totalriders=144</A><br><br>now here is an example of when i don't have the same amount of riders in each semi.<br>&raquo;<A HREF="http://onitracing.net/test.php?totalriders=76" >onitracing.net/test.php?totalriders=76</A><br><br>as you can see it can't properly calculate the riders in each heat.<br><br>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.<br><br>here is the script. i have been working on it for 2 days and it's driving me insane now.<br><br>&raquo;<A HREF="http://cdog.pastebin.com/m7a421e6" >cdog.pastebin.com/m7a421e6</A><br><br>to see how the script reacts with different amounts of riders just change totalriders in the url to anything from 1-144<br><small>--<br>If what ya got is perfect and you always want better. Happiness will never come. - <A HREF="http://www.dupyup.com">[Have Some Fun]</a> -</small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,21453113</guid>
<pubDate>Wed, 19 Nov 2008 16:56:22 EDT</pubDate>
</item>

</channel>
</rss>
