This question already has an answer here:
Please help me out what I am doing wrong in this block of code/script:
$product=array();
if($result=mysqli_query($con,"SELECT * FROM `INS_PAN`")
{
while($object==mysqli_fetch_object($result)):
$product[]=$object;
endwhile;
mysqli_free_result($result);
}
Please correct me out, I am Rookie in PHP.
</div>