Jump to content
MakeWebGames

Recommended Posts

Posted

I've got bars on my criminal records page that are going over 100% and are getting really long causing the page to goof up. Heres what my criminal records page looks like...

 

My problems fixed....You dont need to see this code anymore  :-P

 

Anyone have a solution???

Posted

Re: Bars over 100% ????

Well I think part of the problem is that the percents arent accurate.

I have 22 passed crimes and 3 failed crimes and the bar says 733%

So I know thats not correct. Anyone know how to fix the accuracies?

Posted

Re: Bars over 100% ????

$cdone = $rr[crimesdone];

$cfailed = $rr[crimesfailed];

$ciperc= ($cdone / ($cdone + $cfailed) * 100);

// $ciperc = 15 etc

Try that, dunno what the one after it is for

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...