abfrage geändert
This commit is contained in:
parent
1757e9ca5f
commit
24af813296
@ -5,7 +5,7 @@ $sql = "SELECT * FROM sites WHERE active=1";
|
|||||||
|
|
||||||
echo '<table>';
|
echo '<table>';
|
||||||
foreach ($pdo->query($sql) as $row){
|
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'])){
|
if (isset($_GET['source'])){
|
||||||
@ -17,7 +17,7 @@ if (isset($_GET['source'])){
|
|||||||
$data = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
$data = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||||
echo '<table>';
|
echo '<table>';
|
||||||
foreach ($data as $row){
|
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>';
|
echo '</table>';
|
||||||
}else{
|
}else{
|
||||||
|
Loading…
Reference in New Issue
Block a user