| Newsgroups |
php.notes |
| Message-ID |
<[email protected]> |
<!-- STEP 2: Ausgabe in einer HTML-Tabelle -->
<h1>Offices</h1>
<table class="table">
<thead>
<tr>
<th>City</th>
<th>Phone</th>
<th>AdressLine1</th>
<th>Country</th>
<th>PostalCode</th>
<th>Territory</th>
<th></th>
</tr>
</thead>
<tbody>
<?php
foreach($result as $row) {
// Iteration über alle Datensätze -> Ergebnis ist ein 1-dimensionales assoziatives Array
// print_r($result); // Ausgabe des Arrays zu Testzwecken
echo "<tr>";
// Werte in einer Table-row ausgeben
echo "<td>" . $row['city'] . "</td>";
echo "<td>" . $row['phone'] . "</td>";
echo "<td>" . $row['addressLine1'] . "</td>";
echo "<td>" . $row['country'] . "</td>";
echo "<td>" . $row['postalCode'] . "</td>";
echo "<td>" . $row['territory'] . "</td>";
echo "</tr>";
}
?>
</tbody>
</table>
</div>
</body>
</html>
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 91.113.31.198)
----
Manual Page -- https://php.net/manual/en/language.exceptions.php
Edit -- https://main.php.net/note/edit/130192
Del: integrated -- https://main.php.net/note/delete/130192/integrated
Del: useless -- https://main.php.net/note/delete/130192/useless
Del: bad code -- https://main.php.net/note/delete/130192/bad+code
Del: spam -- https://main.php.net/note/delete/130192/spam
Del: non-english -- https://main.php.net/note/delete/130192/non-english
Del: in docs -- https://main.php.net/note/delete/130192/in+docs
Del: other reasons-- https://main.php.net/note/delete/130192
Reject -- https://main.php.net/note/reject/130192
Search -- https://main.php.net/manage/user-notes.php