Printing a variable only when it changes?
- by user1781639
First off, my question was a little vague or confusing since I'm not really sure how to phrase my question to be specific. I'm trying to query a database of stockists for a Knitting company (school project using PHP) but I'm looking to print the city as a heading instead of with each stockists information.
Here is what I have at the moment:
$sql…