I have a small problem, or I just can't find the solution. I have follow code in my site place.php
<?php $con = mysqli_connect("localhost", "root", "", "vmaxdbweb"); $res = mysqli_query($con, "SELECT * FROM tblplatz");
// Tabellenbeginn
echo "<table class='tbl'>";
// Überschrift
echo "<th>ID</th> <th>Bezeichung</th> <th>Code</th>";
echo "<th>Notizen & Beurteilung</th> <th>Geodaten</th> <th>Details</th>";
$lf = 1;
while ($dsatz = mysqli_fetch_assoc($res))
{
// Speichere die Daten in der Sitzung mit dem Schlüssel 'pla_id'
echo "<tr>";
echo "<td>" . $dsatz["pla_id"] . "</td>";
echo "<td>" . $dsatz["pla_bezeichnung"] . "</td>";
echo "<td>" . $dsatz["pla_code"] . "</td>";
echo "<td>" . $dsatz["pla_notiz_beurteilung"] . "</td>";
echo "<td>" . $dsatz["pla_geodaten"] . "</td>";
echo "<td><a href='content\placedetail.php?id=".$dsatz["pla_id"]."'>Details</a></td>";
$lf = $lf + 1;
}
// Tabellenende
echo "</tabelle>";
mysqli_close($con);
?>
my laylout on the website looks like this
<!DOCTYPE html>
<html lang="en">
<?php include __DIR__.'/header.inc.php' ?>
<body>
<div class ="banner">
<h4>VmaxDB Web</h4>
</div>
<div class = "main">
<div class = "menu">
<header class="container">
<?php include __DIR__.'/nav.inc.php' ?>
</header>
</div>
<div class = "stage">
<div class = "stage-header">
<?=$title?>
</div>
<div class = "content">
<main class="container">
<?php include __DIR__.'/../content/'.$currentPage.'.php' ?>
</main>
</div>
</div>
</div>
<div>
<?php include __DIR__.'/footer.inc.php' ?>
</div>
</body>
</html>
and i would like open the link
echo "<td><a href='content\placedetail.php?id=".$dsatz["pla_id"]."'>Details</a></td>";
from site place.php
in the content/container place
Does anyone happen to have an idea? :) I've tried many things, unfortunately I can't find the solution, it always opens a new tab.