ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[¤À¨É] PHP SQLSRV Select Åã¥Ü¥XÄæ¦ì»yªk - sqlsrv_fetch_array ¥Îªk

[¤À¨É] PHP SQLSRV Select Åã¥Ü¥XÄæ¦ì»yªk - sqlsrv_fetch_array ¥Îªk

PHP SQLSRV Select Åã¥Ü¥XÄæ¦ì»yªk - sqlsrv_fetch_array ¥Îªk
  1. while( $row = sqlsrv_fetch_array( $result, SQLSRV_FETCH_ASSOC ) ) {
  2. if (++$i == 1) { // ²Ä¤@µ§¸ê®ÆÅã¥ÜÄæ¦ì¦WºÙ
  3. echo "<tr>";
  4. foreach (array_keys($row) as $val) {
  5. echo "<td>".$val."</td>";
  6. }
  7. echo "</tr>". "\n" ;
  8. }

  9. echo "<tr>";
  10. foreach ($row as $val) {
  11. echo "<td>".$val."</td>";
  12. }
  13. echo "</tr>". "\n" ;
  14. }
½Æ»s¥N½X

        ÀR«ä¦Û¦b : ¥@¤W¦³¨â¥ó¨Æ¤£¯àµ¥¡G¤@¡B§µ¶¶ ¤G¡B¦æµ½¡C
ªð¦^¦Cªí ¤W¤@¥DÃD