abfrage geändert

This commit is contained in:
Göran Heinemann 2020-03-06 13:13:25 +01:00
parent 1757e9ca5f
commit 24af813296

View File

@ -5,7 +5,7 @@ $sql = "SELECT * FROM sites WHERE active=1";
echo '<table>';
foreach ($pdo->query($sql) as $row){
echo '<tr><td><a href="admin-web.php?source='.$row['id'].'">'.$row['title'].'</a></td><td>'.$row['link'].'</td></tr>';
echo '<tr><td><a href="index.php?source='.$row['id'].'">'.$row['title'].'</a></td><td>'.$row['link'].'</td></tr>';
}
if (isset($_GET['source'])){
@ -17,7 +17,7 @@ if (isset($_GET['source'])){
$data = $stmt->fetchAll(PDO::FETCH_ASSOC);
echo '<table>';
foreach ($data as $row){
echo '<tr><td><a href="admin-web.php?source='.$_GET['source'].'&time='.$row['id'].'">'.$row['time'].'</a></td></tr>';
echo '<tr><td><a href="index.php?source='.$_GET['source'].'&time='.$row['id'].'">'.$row['time'].'</a></td></tr>';
}
echo '</table>';
}else{