master
Helge 2021-12-28 23:49:45 +01:00
parent 42642b4aab
commit 1b342654a5
1 changed files with 11 additions and 0 deletions

11
index.php 100644
View File

@ -0,0 +1,11 @@
<?php
$pdo = new PDO('mysql:host=localhost;dbname=links', 'root', 'test');
$sql = "SELECT * FROM link";
foreach ($pdo->query($sql) as $row) {
echo '<a href="'.$row['link_url'].'" target="_blank">'.$row['link_name'].'</a><br>';
}
?>