I'm trying to show my PHP in a div in the HTML section of my web page, here is the PHP
$result = mysqli_query($connect,"SELECT * FROM adopter");
if(mysqli_num_rows($result)>0){
while($row=mysqli_fetch_assoc($result)){
echo 'AdopterID: '. $row['AdopterID'] . '<br>';
echo 'Name: '. $row['Name'] . '<br>';
echo 'Address: '. $row['Address'] . '<br>';
echo 'TelephoneNumber: '. $row['TelephoneNumber'] . '<br> <br>';
I would like this to be displayed in my div in the HTML since it is always displaying this information at the top literally above my page instead of the blank space I want in my website design.
<div class="title">
</div>
<title> PHP UPDATE DATA </title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
</div>
</div>
I'm trying to put it into this section of the DIV in HTML
';` and then echo out your HTML wherever you want. – David Wyly May 02 '16 at 15:26