Fd1 = " . $fdlist1 .
$fdlist1 = substr($fdlist1,0,strlen($fdlist1)-1) .
$fdlist2 = "" .
$sqlquery = "0select * from " . $mysql_table . " where 1=2 " .
$records2 = mysql_query ($sqlquery) .
$idcount2 = mysql_num_fields ( $records2 ) .
for ( $i = 0 . $i < $idcount2 . $i )
$fdlist2 .= mysql_field_name($records2,$i )."," .
echo "
FD2 = " . $fdlist2 .
$fdlist2 = substr($fdlist2,0,strlen($fdlist2)-1) .
$fp = fopen ("fdlist.txt","w") .
fwrite ($fp,$ctable) .
fwrite ($fp,"n").
fwrite ($fp,$fdlist1) .
fwrite ($fp,"n").
fwrite ($fp,$etable) .
fwrite ($fp,"n") .
fwrite ($fp,$fdlist2) .
fclose($fp) .
odbc_close($conn).
if ( $idcount2 != $idcounts ) {
echo "