Re: [PHP] do this OR that

2005-12-01 Thread Richard Davey
Hi Judson, Thursday, December 1, 2005, 12:40:16 PM, you wrote: > I believe I should re-write it like this: > >$total = ($mygrade/$quiz->grade) ; >if ($total > .80 | .80) { > > Is that right? Thanks in advance for your help. 'OR' is ||, but you need to

RE: [PHP] do this OR that

2005-12-01 Thread Jim Moseby
> > Group, > > I have a function that grades a quiz. I want to show a page if the > student scores 80% or above. > > Currently, the script reads: > > >$total = ($mygrade/$quiz->grade) ; >if ($total > .80) { > > > That means that if you score 80% precisely, you don't get the > foll

[PHP] do this OR that

2005-12-01 Thread Judson Vaughn
Group, I have a function that grades a quiz. I want to show a page if the student scores 80% or above. Currently, the script reads: $total = ($mygrade/$quiz->grade) ; if ($total > .80) { That means that if you score 80% precisely, you don't get the follow-up script. I believe I shoul