hey guys just wondering if anyone could help me with a little issue that i am having (PHP)
basically what i am doing is having a item with a ware value in % and i cannot get it to be at a max value of 100% it always exceeds this.
is there some sort of code that i can use to max the value or something similar live a specific value in phpmyadmin
Cheers
James
little help please
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: little help please
Can you post the code that isn't working? It shouldn't be much of an issue to put the percentage to 100, so there is likely a logical error.
The indelible lord of tl;dr
-
- Posts: 22
- Joined: Thu Nov 07, 2013 9:35 pm
Re: little help please
Code: Select all
if ($playerinfo3['frontww'] >= 85) {echo "<br>You Are unable to do a test session as one or more of your parts exceed 85%";echo "<center><a href='index.php'>Go Back</center></a>";exit;}
so if the wear was 84% they could carry out the task but potentially the wear will then exceed 100%
-
- Posts: 22
- Joined: Thu Nov 07, 2013 9:35 pm
Re: little help please
suppose i could do a statement checking if the wear is greater than 100 and then just change it that way
-
- Posts: 22
- Joined: Thu Nov 07, 2013 9:35 pm
Re: little help please
could someone help me with this please
from the pic above i want to get the text "Testing" to move parallel with the first box
is there something i do with the code or in css
Cheers
from the pic above i want to get the text "Testing" to move parallel with the first box
is there something i do with the code or in css
Cheers
Re: little help please
Make it into a div and move it using CSS
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: little help please
Yes, put them in divs and float: left to both of them.
As for the other issue, we need to see the code that is adding to that amount, not the IF statement. We need to see why it is going over what it should be.
As for the other issue, we need to see the code that is adding to that amount, not the IF statement. We need to see why it is going over what it should be.
The indelible lord of tl;dr
-
- Posts: 22
- Joined: Thu Nov 07, 2013 9:35 pm
Re: little help please
thanks for that guys all sorted now