I made a PHP code that tracks packages by getting information from a JSON file and I turned it as a Wordpress plugin. but every time I search the outcome appears on the top of the page.hw can I make it appear where I need it to?
<?php
$url = "a url where i get my json fille";
$code = $_POST[code];
$data = file_get_contents("$url$code");
$json = json_decode($data);
echo "<table class=\"table\">";
foreach ($json as $key => $row) {
echo "<tr>";
foreach ($row as $key0 => $row0) {
echo "<th>" . $key0 . " : " . $row0 . "</th>";
}
echo "</tr>";
}
echo "</table>";
?>