0

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"];
}
2
Contributors
2
Replies
9
Views
3 Years
Discussion Span
Last Post by ruhestorer
0

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.