Hi,
I am using php to update data and i need to see which field query is already updated while the while loop is still running in case the process stops or in case i need to end/ stop process.
Right now it shows the list of documents (doc_code) updated, when the all process is finished and in case i need to stop process there is no way i can see where it stopped.

while ($row = odbc_fetch_array($res)) {
    $UpdatePX = "my query";

    $RUpdatePX = odbc_exec($conn, $UpdatePX) or die('</br>' . $UpdatePX . '</br>' . print_r(odbc_errormsg(), true));
    odbc_free_result($RUpdatePX);

    echo "</br>Updated: " . $row["DOC_CODE"];
}

flush() alone didn't do the trick, but
flush();
ob_flush();
together works, thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.