Mysql
 sql >> Database >  >> RDS >> Mysql

php echo prima riga wait/sleep quindi echo seconda riga

prova a utilizzare buffering di output . Ad esempio:

header( 'Content-type: text/html; charset=utf-8' );

while ($row = $strSql->fetch_assoc()) {
      $rows[]=$row;
       foreach($rows as $row){
            $words1=$row['words'];
            echo '<div class="animatedText"> ';
            echo $words1;
            echo '</div>';
            flush();
            ob_flush();
            sleep(5);
           }
       }