![]() |
| | Themen-Optionen | Thema durchsuchen |
| | Nach oben #1 |
| Neuer Benutzer Registriert seit: 28.08.2008
Beiträge: 11
|
Hallo habe eine datenbank mit einer tabelle und mehreren Zeilen wenn ich jetzt PHP-Code: wie bekomme ich alle zeilen angezeigt |
| | |
| | Nach oben #2 |
| Dejan Spasic Registriert seit: 05.01.2006 Ort: Düsseldorf
Beiträge: 169
|
PHP ist doch gut dokumentiert... In dem Sinne RTF?M PHP-Code: |
| | |
| | Nach oben #3 |
| Neuer Benutzer Registriert seit: 28.08.2008
Beiträge: 11
|
super danke funktioniert nur wie bekomme ich das hin wenn meine ausgabe normal HTML-Code: <td class="<?php echo $style ?>"><?php echo htmlspecialchars($row["Trade Code"]) ?></td> <td class="<?php echo $style ?>"><?php echo htmlspecialchars($row["Trade Date"]) ?></td> <td class="<?php echo $style ?>"><?php echo htmlspecialchars($row["Trade Time"]) ?></td> <td class="<?php echo $style ?>"><?php echo htmlspecialchars($row["Short name"]) ?></td> <td class="<?php echo $style ?>"><?php echo htmlspecialchars($row["ISIN"]) ?></td> <td class="<?php echo $style ?>"><?php echo htmlspecialchars($row["Participant Code Buy"]) ?></td> <td class="<?php echo $style ?>"><?php echo htmlspecialchars($row["Dealing Capacity Buy"]) ?></td> <td class="<?php echo $style ?>"><?php echo htmlspecialchars($row["Participant Code Sell"]) ?></td> <td class="<?php echo $style ?>"><?php echo htmlspecialchars($row["Dealing Capacity Sell"]) ?></td> <td class="<?php echo $style ?>"><?php echo htmlspecialchars($row["Trade Price"]) ?></td> <td class="<?php echo $style ?>"><?php echo htmlspecialchars($row["Trade Size"]) ?></td> <td class="<?php echo $style ?>"><?php echo htmlspecialchars($row["Trade Type"]) ?></td> <td class="<?php echo $style ?>"><?php echo htmlspecialchars($row[" Currency"]) ?></td> <td class="<?php echo $style ?>"><?php echo htmlspecialchars($row["Cancelled Indicator"]) ?></td> <td class="<?php echo $style ?>"><?php echo htmlspecialchars($row["Trade Cancellation Date"]) ?></td> <td class="<?php echo $style ?>"><<?php echo htmlspecialchars($row["Trade Cancellation Time"]) ?></td> hats du da bitte auch einen tip für mich |
| | |
| | Nach oben #4 |
| neugieriger PHP-Anfäger Registriert seit: 16.08.2008 Ort: Mecklenburg-Vorpommern
Beiträge: 45
|
Du könntest auch folgendes probieren (ist dem oben geschriebenen ganz ähnlich im Aufbau PHP-Code: |
| | |
| | Nach oben #5 |
| Bastian Fenske Registriert seit: 04.01.2006 Ort: Kassel
Beiträge: 853
|
mysql_fetch_assoc() ist hier (und sonst in aller Regel auch) nicht die bessere Wahl, da mysql_fetch_array() ja nur einen (in aller Regel unnötigen) doppelten Zugang zu den Daten herstellt und damit den Datensatz auch doppelt in den Speicher legt. Zu dem zweiten Problem: Pack die Ausgabe einfach in eine Schleife: PHP-Code: Bastian |
| | |
![]() |
| Lesezeichen |
| Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1) | |
| Themen-Optionen | Thema durchsuchen |
| |
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Fehler bei Datenbankabfrage | Bookworm | PHP-Programmierung | 5 | 09.06.2006 11:02 |