Currently I use this code to display the result on the screen
$sqlUrl = "SELECT *
FROM $category
WHERE sub_category = '$subCategory'";
$result = mysqli_query($con,$sqlUrl);
echo "<ul>";
while($row = mysqli_fetch_array($result))
{
echo "<li>";
echo "<a href='$row[url]'>$row[link_text]</a>";
echo "</li>";
}
echo "</ul>";
but using an other template html file the above code displays the results at the very beginning of the page. So, I have place a div in html template
<div id="div6">
</div>
and I am to use JScript so as for the results to display at the div place. The script looks like
<script>
document.getElementById("div6").innerHTML= "XXXX";
</script>
Could you please let me know what to write on the XXXX place?