I am trying to find a simple way to display "yes" and "no" based on a percentage. this is just an example in vb.net I can set a static and do something like this (70% and 30%).. there issue with php is that if I do something like this and then refresh its like start the app all over again so it wont work.. how can I go around that?
Static iNo As Long, iYes As Long
If iNo > iYes * 0.42 Then
iYes = iYes + 1
Return False 'this is the 70%
iNo = iNo + 1
Return True 'this is the 30%
how exactly can I accomplish something this simple using PHP?