search

Home  >  Q&A  >  body text

Why can't I echo table body data?

<?
if( sqlsrv_fetch($result,($page2-1)*$gPageSize2) ) {
    for($i=0;$i<$gPageSize2;$i++) {
          echo "<tr>";
          $arr2= sqlsrv_fetch_array($result);
          if($arr2) {
          for($nOffSet2 = 0;$nOffSet2 < count($arr2);$nOffSet2++) {
          echo "<td  align=center>".$arr2[$nOffSet2]."</td>";
          }
          }
        echo "</tr>";
    }

}

Cannot output table body content?

fggfgg1226 days ago901

reply all(1)I'll reply

  • 猪老湿

    猪老湿2021-07-19 13:36:31

    <table>?

    You want to output a table, it would be better to assemble it with strings

    reply
    0
  • Cancelreply