Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
<?php
$fileid = $_GET['id'];
//Verbindung herstellen
$datenbank = mysql_connect("localhost","root","") or die ("Verbindung fehlgeschlagen: ".mysql_error());
$verbunden = mysql_select_db("links") or die ("Datenbank nicht gefunden oder fehlerhaft");
//Daten Abfragen und Links generieren
$sql = "SELECT
*
FROM
links
WHERE
containerid = '$fileid' ";
$result = mysql_query($sql) OR die(mysql_error());
$row = mysql_fetch_assoc($result);
$link = $row['link'];
echo"
$link<br>
<a href='goto.php?id=$fileid&link=$link'>klick mich</a><br/>
";
mysql_close($datenbank);
$row = mysql_fetch_assoc($result);
While ($row = mysql_fetch_assoc($result))
{
//Hier steht jetzt was du machen willst.
$link = $row['link']; echo" $link<br> <a href='goto.php?id=$fileid&link=$link'>klick mich</a><br/> ";
} // Ende der While/Schleife
Doch, mit dem Hinweis auf SQL-Injectiondanke . Perfekter gehts nicht :)