mirror of
https://gitlab.com/harald.mueller/aktuelle.kurse.git
synced 2024-11-30 13:41:58 +01:00
20 lines
586 B
PHP
20 lines
586 B
PHP
|
<?php
|
||
|
# Quelle: http://www.schattenbaum.net/php/
|
||
|
# Erweiterungen von Olivia Adler
|
||
|
include("dbconnect.php");
|
||
|
$loeschen = "DELETE FROM links WHERE id = $del_id";
|
||
|
$loesch = mysql_query($loeschen);
|
||
|
# gibt DB-Inhalt aus:
|
||
|
$abfrage = "SELECT * FROM links";
|
||
|
$ergebnis = mysql_query($abfrage);
|
||
|
while($row = mysql_fetch_object($ergebnis))
|
||
|
{
|
||
|
echo "<a href='$row->url'>";
|
||
|
echo $row->urlname;
|
||
|
echo "</a>\n";
|
||
|
echo "<br>";
|
||
|
echo $row->beschreibung ." von ". $row->name ."<br><br>";
|
||
|
}
|
||
|
mysql_free_result($ergebnis);
|
||
|
mysql_close($verbindung);
|
||
|
?>
|