Avatar of Mark Steggles
Mark Steggles
Flag for United States of America

asked on 

What is the problem with this do while loop?

Page is to display top score by player (this piece works fine) and
highlight where they have gone better or worse than par (green good,
red bad etc)

So I set variable up to select top scores then echo for results
($row_Score) to be displayed - works
Introduce another variable $colourx which checks value from result
($row_Score) and if == 2 (once working I will put another variable for
par) display colour green

So in example attached if value is 2 then colour should be green else
it will be black. This working fine for first row returned but any
subsequent rows just use colour from first row. (attached screenshot
example)

template.php
screengrab.jpg
PHP

Avatar of undefined
Last Comment
Mark Steggles

8/22/2022 - Mon