select * from mysql database table using php

 <?php

$servername="localhost";
$username="root";
$password="";
$dbname="shrisha";

$conn=mysqli_connect($servername,

$username,$password,$dbname);

$sql="SELECT * FROM tbl";

$data=mysqli_query($conn,$sql);

$show=mysqli_fetch_array($data);

echo $show['id'].$show['name'];

?>

Comments

Popular posts from this blog