Thanks for looking at this.
By repeating over and over I meant
Group A Group A Group A Group A
Group B Group B Group B Group B
I don't want to do it with html, because this info changes all the times.
Field Type Attributes Null Default Extra Action
id int(4) UNSIGNED ZEROFILL No auto_increment
name varchar(50) No
contact_name varchar(70) No
contact_email varchar(70) No
hphone varchar(20) No
wphone varchar(20) No
address mediumtext No
division varchar(50) No
password varchar(50) No
info longtext No
photo varchar(100) No
photo_cap mediumtext No
disabled int(1) No 1
dstats int(1) No 1
groupname varchar(255)
$currentteams = $DB_site->query("
SELECT *
FROM " . TABLE_PREFIX . "cclpinternational_teams
WHERE disabled=1 AND name!='divadmin' AND division='$thedivision'
GROUP BY groupname
ORDER BY groupname
");
// to get the info in 2 columns
$rcount=1;
$rpertr= 2;
// to get the info in 2 columns
$rrows = $DB_site->num_rows($currentteams);
while ($current = $DB_site->fetch_array($currentteams))
{
$currentid = $current['id'];
$currentpic = $current['photo'];
if ($currentpic == "")
{
$currentpic = "generic.jpg";
}
$currentname = $current['name'];
$currentgroup = $current['groupname'];
$currentdiv = $current['division'];
Once I figure out how to display the x amount of teams (4 in that case) under each group instead of one, then I could do the LEFT JOIN to populate the other info.