Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Hallo,

ich probiere mich gerade ein wenig mit MySQL Datenbanken.

Und möchte nun aus diesem hier alle Einträge anzeigen lassen.

Jedoch weiß ich nicht genau welche Schleife ich dafür nutzen soll.

Hier mal der Ausschnitt aus dem Code:


<?PHP
open_db();

$sql = "SELECT id, name, url, pic FROM downloadcats WHERE kid = 3";
$res = mysql_query($sql);
$array = mysql_fetch_array($res);

$num_rows = mysql_num_rows($res);

?>

<table cellpadding="2" cellspacing="0" border="0" class="lightblue">
<tr>
<?PHP


?>

<td align="center" width="100px"><img src="http://forum.fachinformatiker.de/images/download_center/<?=$array[3] ?>" width="35px" height="35px"></td>
</tr>
<tr>
<td align="center" width="100px"><a href="<?=$_SERVER['PHP_SELF'];?>?act=d_c_doku?cat=<?=$array[0]?>" style="text-decoration:none"><?=$array[1] ?></a></td>
<?PHP


?>
</tr>

</table>
[/PHP]

Kann mir da jemand mal einen kleinen Ansatz zu der Schleife geben?

Hab es nun mit einer while-Schleife lösen können...

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.