mirror of
https://gitlab.com/harald.mueller/aktuelle.kurse.git
synced 2024-11-30 21:51:56 +01:00
34 lines
1.0 KiB
PHP
34 lines
1.0 KiB
PHP
<?php
|
|
# Quelle: http://www.schattenbaum.net/php/
|
|
# Erweiterungen von Olivia Adler
|
|
include("dbconnect.php");
|
|
$aendern = "UPDATE links set url = '$url' WHERE id = '$chg_id'";
|
|
$update = mysql_query($aendern);
|
|
|
|
$aendern = "UPDATE links set urlname = '$urlname' WHERE id = '$chg_id'";
|
|
$update = mysql_query($aendern);
|
|
|
|
$aendern = "UPDATE links set name = '$name' WHERE id = '$chg_id'";
|
|
$update = mysql_query($aendern);
|
|
|
|
$aendern = "UPDATE links set banner = '$banner' WHERE id = '$chg_id'";
|
|
$update = mysql_query($aendern);
|
|
|
|
$aendern = "UPDATE links set beschreibung = '$beschreibung' WHERE id = '$chg_id'";
|
|
$update = mysql_query($aendern);
|
|
|
|
|
|
# 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);
|
|
?>
|