DNS - Less Connection; を使用して MS SQL から列名を追加しようとしています。DNSレスコードを使用して正常に接続しましたが、列名も印刷する必要があります。
echo "<table>";
while (!$rs->EOF) //carry on looping through while there are records
{
echo "<tr>";
for ($i=0; $i < $num_columns; $i++) {
echo "<td>" . $fld[$i]->value . "</td>";
}
echo "</tr>";
$rs->MoveNext(); //move on to the next record
}
echo "</table>"; //close the connection and recordset objects freeing up resources
テーブルを変更する方法は知っていますが、テーブル名を追加するにはどうすればよいですか?