If I have [x]
[y]
[z]
columns inside a [mytable]
table in MSSQL, I would like to know how can I loop through each of them using php in order to have all of the columns' name? The reason is because I could potentially delete or add a column so that php code would make this dynamic without having to hardcode the php page. Basically, if I could have a php code similar to the following,
foreach( COLUMN as $columname in [SQL table])
echo "$columname";
// do something else
}
it would be awesome.