wcf.regNote.message

|
|
PHP Source code |
1 |
case 'all_scan': echo "<table border='1' class='ttext'>"; echo "<tr>"; echo "<td width='35'>Status</td>"; echo "<td width='20'>Nr.</td>"; echo "<td width='40'>Koord</td>"; echo "<td width='100'>Name</td>"; echo "<td width='65'>Punkte</td>"; echo "<td width='50'>Macht</td>"; echo "<td width='50'>Flotte</td>"; echo "<td width='50'>Deff</td>"; echo "<td width='50'>M-Exxen</td>"; echo "<td width='50'>K-Exxen</td>"; echo "<td width='40'>Astros</td>"; echo "<td width='40'>LO</td>"; echo "<td width='40'>LR</td>"; echo "<td width='40'>MR</td>"; echo "<td width='40'>SR</td>"; echo "<td width='40'>AJ</td>"; echo "<td width='40'>Jäger</td>"; echo "<td width='40'>Bomber</td>"; echo "<td width='40'>Freggi</td>"; echo "<td width='40'>Zerris</td>"; echo "<td width='40'>Kreuzer</td>"; echo "<td width='40'>Schlachter</td>"; echo "<td width='40'>Träger</td>"; echo "<td width='40'>Cleps</td>"; echo "<td width='40'>Schutzis</td>"; echo "</tr>"; $result=mysql_query("select * from sec_scan join g_scan join unit_scan where sec_scan.koords = g_scan.koords and sec_scan.koords = unit_scan.koors and g_scan.koords = unit_scan.koords"); while (@$row=mysql_fetch_row($result)) { echo "<tr>"; echo "<td width='35'>"; //Status if ($row[10]==0) { echo "<img src=./free.jpg>"; } else { echo "<img src=./close.jpg>"; } echo "</td>"; echo "<td width='20'>$row[0]</td>"; //Nummer echo "<td width='40'>$row[1]</td>"; //koords echo "<td width='100'>$row[2]</td>";//name echo "<td width='65'>$row[3]</td>";//punkte echo "<td width='50'>$row[4]</td>";//macht echo "<td width='50'>$row[5]</td>";//flotte echo "<td width='50'>$row[6]</td>";//deff echo "<td width='50'>$row[7]</td>";//mexxen echo "<td width='50'>$row[8]</td>";//kexxen echo "<td width='40'>$row[9]</td>";//astros echo "<td width='40'>$row[11]</td>";//lo echo "<td width='40'>$row[12]</td>";//lr echo "<td width='40'>$row[13]</td>";//mr echo "<td width='40'>$row[14]</td>";//sr echo "<td width='40'>$row[15]</td>";//aj echo "<td width='40'>$row[16]</td>";//jäger echo "<td width='40'>$row[17]</td>";//bomber echo "<td width='40'>$row[18]</td>";//freggis echo "<td width='40'>$row[19]</td>";//zerris echo "<td width='40'>$row[20]</td>";//kreuzer echo "<td width='40'>$row[21]</td>";//schlachter echo "<td width='40'>$row[22]</td>";//träger echo "<td width='40'>$row[23]</td>";//karper echo "<td width='40'>$row[24]</td>";//schutzis echo "</tr>"; } break;
|
Sie brauchen einen Computer nicht einzuschalten um festzustellen, ob WINDOWS installiert ist. Sehen sie einfach nach, ob die Aufschrift auf der Reset Taste noch lesbar ist.

Quoted
Original von Djadjabing
Servus Folks,
ich möchte gerne in einer datei den inhalt von 3 tabellen anzeigen lassen die nach einer bestimmten variablen sortiert sind...
mir wurde zwar nen befehl gesagt aber das funzt net so ganz...
hier mal der Code:
|
|
PHP Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
case 'all_scan':
echo "<table border='1' class='ttext'>";
echo "<tr>";
echo "<td width='35'>Status</td>";
echo "<td width='20'>Nr.</td>";
echo "<td width='40'>Koord</td>";
echo "<td width='100'>Name</td>";
echo "<td width='65'>Punkte</td>";
echo "<td width='50'>Macht</td>";
echo "<td width='50'>Flotte</td>";
echo "<td width='50'>Deff</td>";
echo "<td width='50'>M-Exxen</td>";
echo "<td width='50'>K-Exxen</td>";
echo "<td width='40'>Astros</td>";
echo "<td width='40'>LO</td>";
echo "<td width='40'>LR</td>";
echo "<td width='40'>MR</td>";
echo "<td width='40'>SR</td>";
echo "<td width='40'>AJ</td>";
echo "<td width='40'>Jäger</td>";
echo "<td width='40'>Bomber</td>";
echo "<td width='40'>Freggi</td>";
echo "<td width='40'>Zerris</td>";
echo "<td width='40'>Kreuzer</td>";
echo "<td width='40'>Schlachter</td>";
echo "<td width='40'>Träger</td>";
echo "<td width='40'>Cleps</td>";
echo "<td width='40'>Schutzis</td>";
echo "</tr>";
$query = "select * from sec_scan join g_scan join unit_scan where ";
$query .= "sec_scan.koords = g_scan.koords and sec_scan.koords = ";
$query .= "unit_scan.koors and g_scan.koords = unit_scan.koords";
$result=mysql_query($query);
while (@$row=mysql_fetch_row($result))
{
echo "<tr>";
echo "<td width='35'>";
//Status
if ($row[10]==0)
{
echo "<img src=./free.jpg>";
}
else
{
echo "<img src=./close.jpg>";
}
echo "</td>";
echo "<td width='20'>$row[0]</td>";
//Nummer
echo "<td width='40'>$row[1]</td>";
//koords
echo "<td width='100'>$row[2]</td>";
//name
echo "<td width='65'>$row[3]</td>";
//punkte
echo "<td width='50'>$row[4]</td>";
//macht
echo "<td width='50'>$row[5]</td>";
//flotte
echo "<td width='50'>$row[6]</td>";
//deff
echo "<td width='50'>$row[7]</td>";
//mexxen
echo "<td width='50'>$row[8]</td>";
//kexxen
echo "<td width='40'>$row[9]</td>";
//astros
echo "<td width='40'>$row[11]</td>";
//lo
echo "<td width='40'>$row[12]</td>";
//lr
echo "<td width='40'>$row[13]</td>";
//mr
echo "<td width='40'>$row[14]</td>";
//sr
echo "<td width='40'>$row[15]</td>";
//aj
echo "<td width='40'>$row[16]</td>";
//jäger
echo "<td width='40'>$row[17]</td>";
//bomber
echo "<td width='40'>$row[18]</td>";
//freggis
echo "<td width='40'>$row[19]</td>";
//zerris
echo "<td width='40'>$row[20]</td>";
//kreuzer
echo "<td width='40'>$row[21]</td>";
//schlachter
echo "<td width='40'>$row[22]</td>";
//träger
echo "<td width='40'>$row[23]</td>";
//karper
echo "<td width='40'>$row[24]</td>";
//schutzis
echo "</tr>";
}
break;
|
Quoted
weiter von Djadjabing
wie kann ich das so machen das ich das da halt alle tabellen inhalte aus den dreien in einer tabelle angezeigt wird?
zur info es sollen die daten nach koords sortiert werden... diese sind in der mysql tabelle in spalte 1
thx for help =)


|
|
PHP Source code |
1 2 3 |
$query = "select * from sec_scan join g_scan join unit_scan where ";
$query .= "sec_scan.koords = g_scan.koords and sec_scan.koords = ";
$query .= "unit_scan.koors and g_scan.koords = unit_scan.koords";
|
|
|
PHP Source code |
1 2 3 |
$query = "select * from sec_scan join g_scan ";
$query .= "ON sec_scan.koords = g_scan.koords join unit_scan ON ";
$query .= "sec_scan.koords = unit_scan.koors";
|

|
|
PHP Source code |
1 |
echo "<td width='20'>$row[0]</td>";
|
|
|
PHP Source code |
1 |
echo "<td width='20'>".$row["spaltenname"]."</td>";
|



Sie brauchen einen Computer nicht einzuschalten um festzustellen, ob WINDOWS installiert ist. Sehen sie einfach nach, ob die Aufschrift auf der Reset Taste noch lesbar ist.
habs grad nochmal geändert so wie ihr es gesagt hatte aber ohne das array wollte erstmal sehen ob das mit der db abfrage funzt.
Sie brauchen einen Computer nicht einzuschalten um festzustellen, ob WINDOWS installiert ist. Sehen sie einfach nach, ob die Aufschrift auf der Reset Taste noch lesbar ist.



Sie brauchen einen Computer nicht einzuschalten um festzustellen, ob WINDOWS installiert ist. Sehen sie einfach nach, ob die Aufschrift auf der Reset Taste noch lesbar ist.
|
|
PHP Source code |
1 2 3 4 |
if(!$result) {
echo mysql_error();
exit;
}
|


Sie brauchen einen Computer nicht einzuschalten um festzustellen, ob WINDOWS installiert ist. Sehen sie einfach nach, ob die Aufschrift auf der Reset Taste noch lesbar ist.
This post has been edited 1 times, last edit by "Djadjabing" (Apr 25th 2005, 9:43pm)
Sie brauchen einen Computer nicht einzuschalten um festzustellen, ob WINDOWS installiert ist. Sehen sie einfach nach, ob die Aufschrift auf der Reset Taste noch lesbar ist.
|
|
PHP Source code |
1 |
$query = ".......... ORDER BY sec_scan.koords";
|

Sie brauchen einen Computer nicht einzuschalten um festzustellen, ob WINDOWS installiert ist. Sehen sie einfach nach, ob die Aufschrift auf der Reset Taste noch lesbar ist.
) Aber
.... 