<?php
include('db.php');
$query=mysqli_query($con,"select * from reg");
while($row=mysqli_fetch_array($query)) {
echo $id;
echo $name;
}
?>
i want to display it as follows:
1.chaitanya 2.swati
3.rena 4.geeta
chaitu11 0 Junior Poster
diafol
chaitu11 0 Junior Poster
chaitu11 0 Junior Poster
mattster 195 Practically a Master Poster Featured Poster
diafol
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.