guys, I am stuck here as I am trying to store all the data into row_cats
and then call one by one.
$get_cats = "select * from categories";
$get_cats .= "select * from products order by rand() LIMIT 0,4"
$run_cats =mysqli_multi_query($con,$get_cats);
while($row_cats=mysqli_fetch_array($run_cats)){
$cat_id = $row_cats['cat_id'];//from first query
$cat_title = $row_cats['cat_title'];
$pro_id=$row_products['products_id'];//from second query
$pro_title=$row_products['product_title'];
$pro_cat=$row_products['cat_id'];
$pro_image=$row_products['product_img1'];