im trying to print out a database data but i keep getting error message - Hack The Tech - Latest News related to Computer and Technology

Hack The Tech - Latest News related to Computer and Technology

Get Daily Latest News related to Computer and Technology and hack the world.

Saturday, June 5, 2021

im trying to print out a database data but i keep getting error message

<?php
include_once 'connect2.php';
?>

<!DOCTYPE html>
<html>

...

<br>
<table border="1px">
<thead>
<tr>
<th>ID</th>
<th>NOM</th>
<th>PRENOM</th>
<th>DateDeNaissence</th>
</tr>
</thead>

<?php
$sql1= "select * from tabletry";
$result= mysqli_query($conn, $sql1);
while ($row = mysqli_fetch_assoc($result)){ 
        
echo $rows['id'];
echo $rows['nom'];
echo $rows['prenom'];
echo $rows['dn'];
        
}
?>

</table>

</body>
</html>

and this the error message :

This page isn’t working localhost redirected you too many times. Try clearing your cookies. ERR_TOO_MANY_REDIRECTS.

can i do php inside HTML



source https://stackoverflow.com/questions/67842726/im-trying-to-print-out-a-database-data-but-i-keep-getting-error-message

No comments:

Post a Comment