WarMad Posted December 31, 2016 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
WarMad Posted January 2, 2017 Author Posted January 2, 2017 sorry can you show me an example actually in a query? Quote
SRB Posted January 2, 2017 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
WarMad Posted January 2, 2017 Author 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
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.