WarMad Posted December 31, 2016 Share Posted December 31, 2016 all i need to know is how to update a couple things by percent i need how to do + 5% +10% +3% +25% i do not know how to do percents at all and have been working on something for a while but im stuck because of that Quote Link to comment Share on other sites More sharing options...
Guest Posted January 2, 2017 Share Posted January 2, 2017 (total / 100) * percent. Quote Link to comment Share on other sites More sharing options...
WarMad Posted January 2, 2017 Author Share Posted January 2, 2017 sorry can you show me an example actually in a query? Quote Link to comment Share on other sites More sharing options...
SRB Posted January 2, 2017 Share Posted January 2, 2017 You know, sometimes there is only one way to process a string, yet someone asks for an example, so for the sake of it - enter some code that's no simpler to understand than the string above. <?php $total = 200; $whole = 100; $percent = 10; $value = ($total / $whole) * $percent; Quote Link to comment Share on other sites More sharing options...
WarMad Posted January 2, 2017 Author Share Posted January 2, 2017 ok thanks sorry im still teaching myself as i go i know a lot at this point but still sometimes need things explained in a way thats so simple my 6 year old niece would understand thank you :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.