Hello
To work it properly you have to add the following part of to your code.
Code:
if($row['Field']=="id"){
continue;
}
This should come after this statement in the code.
Code:
while ($rw = mysql_fetch_array($rsl)) {
I have modified your code please check it may help you.
Code:
$fld = array();
$sql = "SHOW fld FROM ".$acronym;
$rsl = mysql_query($sql);
$i = 1; // to skip the id field
while ($rw = mysql_fetch_array($rsl)) {
if($rw['Field']=="id"){
continue;
}
$fld[]= $rw['Field'];
}
$str = implode(", ", $fld);
echo $str;
Bookmarks