Sven Petruschke
Erfahrenes Mitglied
Oh, stimmt - falschrum gedacht.@snuu: Zuerst nach der Y- und dann nach der X-Koordinate wäre besser Normalerweise wird ja die Rechtswertachse mit x bezeichnet und die Hochwertachse mit y.
Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
Oh, stimmt - falschrum gedacht.@snuu: Zuerst nach der Y- und dann nach der X-Koordinate wäre besser Normalerweise wird ja die Rechtswertachse mit x bezeichnet und die Hochwertachse mit y.
$max = '5';
$x = $max;
for ($x = 1; $x <= $max; $x++)
{ mysql_query("INSERT INTO tabelle(x_pos,y_pos,karte) values('$x','1','1')"); } flush();
for ($x = 1; $x <= $max; $x++)
{ mysql_query("INSERT INTO tabelle(x_pos,y_pos,karte) values('$x','2','1')"); } flush();
for ($x = 1; $x <= $max; $x++)
{ mysql_query("INSERT INTO tabelle(x_pos,y_pos,karte) values('$x','3','1')"); } flush();
for ($x = 1; $x <= $max; $x++)
{ mysql_query("INSERT INTO tabelle(x_pos,y_pos,karte) values('$x','4','1')"); } flush();
for ($x = 1; $x <= $max; $x++)
{ mysql_query("INSERT INTO tabelle(x_pos,y_pos,karte) values('$x','5','1')"); } flush();
$y = 15;
$x = 15;
print '<table bgcolor="#000000" border="0" cellpadding="0" cellspacing="0">';
for($y = 1; $y <= 15; $y++)
{
print '<tr>';
for($x = 1; $x <= 15; $x++)
{
print "<td>";
print '<img src="images/xxx.gif">';
print '</td>';
}
print '</tr>';
}
print '</table>';
$y = 15;
$x = 15;
$max = 15;
print '<table bgcolor="#000000" border="0" cellpadding="0" cellspacing="2">';
for($y = 1; $y <= $max; $y++)
{
print '<tr>';
for($x = 1; $x <= $max; $x++)
{
$uid = "SELECT * FROM tabelle WHERE x_pos='$x' AND y_pos='$y'";
$erg = mysql_query($uid);
while($row = mysql_fetch_object($erg))
{
print "<td>";
echo "uid: $row->uid";
print '<img src="images/xxxx.gif">';
print '</td>';
}
}
print '</tr>';
}
print '</table>';