troubleshooting Question

What is the problem with this do while loop?

Avatar of Mark Steggles
Mark StegglesFlag for United States of America asked on
PHP
3 Comments2 Solutions436 ViewsLast Modified:
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
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 2 Answers and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros