Code:
<?php
// Example
$heading_column = '<whatever is the name of your heading column>';
$last_heading = null;
while($row = your_fetch_assoc_statement){
// detect a change in the heading value and output the new heading
if($last_heading != $row[$heading_column]){
Leave a comment: