"; } // Fetch the count of news entries that haven't been processed $nb_base = mysqli_return_number( $mysqli, "SELECT `id` FROM `base_news` WHERE `step`='0'" ); // Calculate and display the processing time $time = number_format( ( ( microtime( true ) - $time_start ) / NB_BY_STEP ), 3, ',', '' ) .'s/item'; echo "Rem: $nb_base - $time $return"; // If no more entries are found, exit, else move to the next processing step if ( !isset( $id_source ) ) exit; echo ""; ?>