Die Tabelle sieht so aus
GalaxyID|SystemID|PlanetID|LandID
die daraus folgende ausgabe sieht so aus
1 : 1 : 1 : 1
1 : 1 : 2 : 2
1 : 3 : 2 : 2
2 : 1 : 1 : 2
2 : 4 : 2 : 2
jetz möchte ich aber die erste Koordinate der Übersichts halber einmalig oben drüber schreiben, also
Galaxy 1
1 : 1 : 1
1 : 2 : 2
3 : 2 : 2
Galaxy 2
1 : 1 : 2
4 : 2 : 2
mein Code schaut bis jetz so aus
PHP
Code: Alles auswählen
$planiquery = "SELECT * FROM 4_laender WHERE spieler_id = '".$userdata["user_id"]."'";
$planiquery = @mysql_query($planiquery);
if(!$planiquery)
{
message_die(CRITICAL_ERROR, "Could not query to table");
}
while($row = @mysql_fetch_object($planiquery))
{
$template->assign_block_vars('laender', array(
'GALA' => $row->galaxy_id,
'SYS' => $row->system_id,
'PLANI' => $row->planeten_id,
'LAND' => $row->land_id
));
}
Code: Alles auswählen
<!-- BEGIN laender -->
{laender.GALA} : {laender.SYS} : {laender.PLANI} : {laender.LAND}<br />
<!-- END laender -->
MfG V1tzl1