view record

<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<body>
<?php 

    $dbname="demo";

    $con=mysqli_connect("localhost","root","root","demo") or die(mysqli_error());

   $query=mysqli_query($con,"select * from tbl1 ") or die(mysqli_error($con));

   ?>
   <table border="1">
           <tr>
               <td>Name</td>
               <td>surname</td>

           </tr>
     <?php
     while($row=mysqli_fetch_array($query))
     {



     extract($row);



     ?>
     <tr>
         <td><?php echo $row['name']; ?></td>
         <td><?php echo $row['surname']; ?></td>
     </tr>
<?php
}
?>
   </table>




</body>
</html>

Comments

Popular posts from this blog

How to seperate character from string in php

How to Delete record using PHP Ajax

Uploads Only 10 files in month step by step