View Single Post
Old 06-22-2012, 06:05 PM   PM User | #4
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,653
Thanks: 4
Thanked 2,451 Times in 2,420 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
That's what firepages has done there. If you want the side number and count separate, a simple division is all that's required in the print.
So like so:
PHP Code:
print '<table><tr><th>Side</th><th>Roll Count</th></tr>';

for(
$i=1$i<=$sides$i+=1

    
printf('<tr><td>%d</td><td>%d</td></tr>'$i$results[$i]);
}
print 
'</table>'
Edit:
Wait you want a two dimensional array? What exactly is to be in it?
Fou-Lu is offline   Reply With Quote
Users who have thanked Fou-Lu for this post:
helen11 (06-27-2012)