Fetch ALL Similar data In PHP

 -----------------------fetch ALL Similar data-------------------------

   <?php
        
    $select="select * from trendingitem where trend_id='$pro_id'";
        $query=mysqli_query($conn,$select);
        $i=0;
        while($row=mysqli_fetch_array($query))
        {
            $pro_id=$row['trend_id'];
            $producttitle=$row['producttitle'];
            $productbrand=$row['productbrand'];
            $productprice=$row['productprice'];
            $photo=$row['img'];
            $adddesc=$row['adddesc'];

 
    $i++;
     }
   ?>

Post a Comment

0 Comments