ªð¦^¦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 : ¡i®É¶¡µLªk¾B¾×¡j©È®É¶¡®ø³u¡Aªá¤F³\¦h¤ß¦å¡A·QºÉ¦U¦¡¤èªk­n¾B¾×®É¶¡¡Aµ²ªG¬O¡G®ö¶O¤F§ó¦h®É¶¡¡A¥B¤@µL©Ò¦¨¡I
ªð¦^¦Cªí ¤W¤@¥DÃD