In my database, there is a table named CAT with a column named cat_id.
I need to fetch the cat_id field from the CAT table row by row without using a while loop.
This is what I have so far...
$catid = mysqli_query($con,"select * from cat");
$fetchcat = mysqli_fetch_assoc($catid);
Now I need data one by one like below...
<li><a href="<?php echo $fetchcat['cat_id']; ?>"></a>Men</li>
<li><a href="<? what can i type here to get 2nd row??? ?>"></a>Men</li>
Can someone suggest the next step? Thanks