PHP во время выбора запроса

 while($row = $selectQuery1->fetch_array(MYSQLI_ASSOC)){
        // do what you want to do with each row returned by the select query
   		//$row is an associative array containing all the fields in your database as keys
   		//e.g.:
   			echo $row['product_name']."<br>";
   
    }
Delightful Dogfish