Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-22-2005, 10:50 PM   PM User | #1
Trojanfan
Registered User

 
Join Date: Mar 2005
Location: So Cal
Posts: 133
Thanks: 0
Thanked 0 Times in 0 Posts
Trojanfan is an unknown quantity at this point
Help with gaming cms

Hey guys. Right now, the rankings go from 1 to 10. I'd like them to go from 0.1 or even more preferrably 1.0 to 10.0 in increments of .1. I have tried to edit the code myself but all my efforts have failed. Your help would be greatly appreciated. Here is the code:

// rankings
// grab ranking names
$ranks = explode(',',setting('article_ranknames'));
// set up selects
$options[''] = '-1';
for ($i = 1; $i <= 10; $i++)
{
$options[$i] = $i;
}
$count = 1;
while (list(,$r) = each($ranks))
{
trim($r);
if (!empty($r))
{
$form->AddSelect($r . ' ' . ARTICLES_RANKING, 'rank_' . $count, $options);
}
$count++;
}
Trojanfan is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:33 PM.


Advertisement
Log in to turn off these ads.