Progress bar while running while loop

前端 未结 2 1846
青春惊慌失措
青春惊慌失措 2020-12-21 09:38

I have this while loop, that basically loops through a lot of records in a database, and inserts the data in another:

$q = $con1->query($users1) or die(pr         


        
2条回答
  •  醉酒成梦
    2020-12-21 10:01

    You can't. The php is first interpreted by the server and then send to the user as HTML-Code.
    The only possibility would be creating a html-page and call the php-script with AJAX.

提交回复
热议问题